We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5b07f5 commit 40a9473Copy full SHA for 40a9473
cloudendure/cloudendure.py
@@ -491,9 +491,12 @@ def update_blueprint(self) -> bool:
491
)
492
blueprint["disks"] = new_disks
493
494
- # Update launch subnets and SG IDs
495
- blueprint["subnetIDs"] = [self.subnet_id]
496
- blueprint["securityGroupIDs"] = [self.security_group_id]
+ if self.subnet_id:
+ # Update launch subnets and SG IDs
+ blueprint["subnetIDs"] = [self.subnet_id]
497
+ blueprint["privateIPAction"] = "CREATE_NEW"
498
+ if self.security_group_id:
499
+ blueprint["securityGroupIDs"] = [self.security_group_id]
500
501
# Update machine tags
502
blueprint["tags"] = [
0 commit comments