File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -596,7 +596,8 @@ def startCluster():
596596 spotfleetConfig ['LaunchSpecifications' ][LaunchSpecification ]["UserData" ]= userData
597597 spotfleetConfig ['LaunchSpecifications' ][LaunchSpecification ]['BlockDeviceMappings' ][1 ]['Ebs' ]["VolumeSize" ]= EBS_VOL_SIZE
598598 spotfleetConfig ['LaunchSpecifications' ][LaunchSpecification ]['InstanceType' ] = MACHINE_TYPE [LaunchSpecification ]
599- if not ASSIGN_IP :
599+ if ASSIGN_IP .lower () == 'false' :
600+ print ("Setting 'AssociatePublicIPAddress' to False, overwriting setting in Fleet file" )
600601 try :
601602 spotfleetConfig ['LaunchSpecifications' ][0 ]['NetworkInterfaces' ][0 ]['AssociatePublicIpAddress' ] = False
602603 except :
@@ -849,4 +850,4 @@ def monitor(cheapest=False):
849850 startCluster ()
850851 elif sys .argv [1 ] == 'monitor' :
851852 monitor ()
852-
853+
You can’t perform that action at this time.
0 commit comments