From 46bdedea0fae91bb4c1368b33234d4b8092ceeb1 Mon Sep 17 00:00:00 2001 From: Shubham Date: Fri, 15 Nov 2024 11:25:13 +0530 Subject: [PATCH] [BACKPORT 2024.2.0][PLAT-16097] Fix the instance_type create call Summary: Fix the instance_type create call Original Commit - https://github.com/yugabyte/yugabyte-db/commit/e944b3c7248508319cd8f1c0e359940a443b98b5 Depends on - D40008 Test Plan: Provisioned node using YNP Created another node with different instance. Ensured registeration is complete. Reviewers: anijhawan, skhilar Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D40010 --- .../resources/ynp/modules/provision/node_agent/node_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/managed/node-agent/resources/ynp/modules/provision/node_agent/node_agent.py b/managed/node-agent/resources/ynp/modules/provision/node_agent/node_agent.py index 6c3e87903de..3061cfb73a4 100644 --- a/managed/node-agent/resources/ynp/modules/provision/node_agent/node_agent.py +++ b/managed/node-agent/resources/ynp/modules/provision/node_agent/node_agent.py @@ -160,7 +160,7 @@ def _create_instance_if_not_exists(self, context, provider): except requests.exceptions.HTTPError as http_err: if response.status_code == 400: logging.info("Instance type does not exist, creating it.") - instance_data = self._generate_instance_type_payload(context, provider['uuid']) + instance_data = self._generate_instance_type_payload(context) instance_payload_file = os.path.join( context.get('tmp_directory'), 'create_instance.json')