We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c15d455 commit 04a7f9dCopy full SHA for 04a7f9d
1 file changed
run.py
@@ -221,8 +221,9 @@ def startCluster():
221
ecsConfigFile=generateECSconfig(ECS_CLUSTER,APP_NAME,AWS_BUCKET,s3client)
222
spotfleetConfig=loadConfig(sys.argv[2])
223
userData=generateUserData(ecsConfigFile,DOCKER_BASE_SIZE)
224
- spotfleetConfig['LaunchSpecifications'][0]["UserData"]=userData
225
- spotfleetConfig['LaunchSpecifications'][0]['BlockDeviceMappings'][1]['Ebs']["VolumeSize"]= EBS_VOL_SIZE
+ for LaunchSpecification in range(0,len(spotfleetConfig['LaunchSpecifications'])):
+ spotfleetConfig['LaunchSpecifications'][LaunchSpecification]["UserData"]=userData
226
+ spotfleetConfig['LaunchSpecifications'][LaunchSpecification]['BlockDeviceMappings'][1]['Ebs']["VolumeSize"]= EBS_VOL_SIZE
227
228
229
# Step 2: make the spot fleet request
0 commit comments