File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,11 @@ def __init__(
7171 "destination_role" , ""
7272 )
7373 self .subnet_id : str = self .config .active_config .get ("subnet_id" , "" )
74+ self .private_ip_action : str = self .config .active_config .get (
75+ "private_ip_action" , ""
76+ )
77+ if self .subnet_id and not self .private_ip_action :
78+ self .private_ip_action = "CREATE_NEW"
7479 self .security_group_id : str = self .config .active_config .get (
7580 "security_group_id" , ""
7681 )
@@ -494,6 +499,7 @@ def update_blueprint(self) -> bool:
494499 if self .subnet_id :
495500 # Update launch subnets and SG IDs
496501 blueprint ["subnetIDs" ] = [self .subnet_id ]
502+ if self .private_ip_action :
497503 blueprint ["privateIPAction" ] = "CREATE_NEW"
498504 if self .security_group_id :
499505 blueprint ["securityGroupIDs" ] = [self .security_group_id ]
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ class CloudEndureConfig:
3737 "destination_role" : "" ,
3838 "subnet_id" : "" ,
3939 "security_group_id" : "" ,
40+ "private_ip_action" : "" ,
4041 "disk_type" : "SSD" ,
4142 "public_ip" : "DONT_ALLOCATE" ,
4243 }
You can’t perform that action at this time.
0 commit comments