Skip to content

Commit

Permalink
[PLAT-16097] Fix the instance_type create call
Browse files Browse the repository at this point in the history
Summary: Fix the instance_type create call

Test Plan:
Provisioned node using YNP
Created another node with different instance.
Ensured registeration is complete.

Reviewers: anijhawan, skhilar

Reviewed By: anijhawan

Subscribers: yugaware

Differential Revision: https://phorge.dev.yugabyte.com/D40008
  • Loading branch information
Vars-07 committed Nov 15, 2024
1 parent 9ca1f4d commit e944b3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit e944b3c

Please sign in to comment.