Skip to content

Commit e2d444a

Browse files
authored
missed final commit in #182
1 parent f2d5c77 commit e2d444a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

run.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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+

0 commit comments

Comments
 (0)