Skip to content

Commit bd37c3e

Browse files
author
Tom Warnock
committed
fixed blueprints to update instance types
1 parent 7cd40f7 commit bd37c3e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cloudendure/cloudendure.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,6 @@ def update_blueprint(self) -> bool:
489489
if not machine_data_dict:
490490
print("No Machines Found!")
491491
return False
492-
493492
try:
494493
blueprints_response = self.api.api_call(
495494
f"projects/{self.project_id}/blueprints"
@@ -521,7 +520,7 @@ def update_blueprint(self) -> bool:
521520
if self.security_group_id:
522521
blueprint["securityGroupIDs"] = [self.security_group_id]
523522

524-
instance_type = self.target_instances.get(machine_name, "")
523+
instance_type = self.target_instances.get(_machine_name, "")
525524
if instance_type:
526525
blueprint["instanceType"] = instance_type
527526

@@ -542,7 +541,6 @@ def update_blueprint(self) -> bool:
542541
blueprint["publicIPAction"] = self.config.active_config.get(
543542
"public_ip", "DONT_ALLOCATE"
544543
)
545-
546544
if self.dry_run:
547545
print("This is a dry run! Not updating blueprints!")
548546
return True

0 commit comments

Comments
 (0)