File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 68
68
)
69
69
70
70
ecs_deploy = list (
71
- filter (lambda x : x ["status" ] == "PRIMARY" , deployment ["services" ][0 ]["deployments" ])
71
+ filter (lambda x : x ["status" ] == "PRIMARY" ,
72
+ deployment ["services" ][0 ]["deployments" ])
72
73
)
73
74
ecs_deploy_status = ecs_deploy [0 ]["rolloutState" ]
74
75
@@ -98,7 +99,8 @@ def rollback():
98
99
# Check if containers are being stoped
99
100
last_task = task .list_tasks (cluster_name , task .ecsDeployId )
100
101
if len (last_task ["taskArns" ]) > 2 :
101
- last_task_info = task .describe_tasks (cluster_name , last_task ["taskArns" ])
102
+ last_task_info = task .describe_tasks (
103
+ cluster_name , last_task ["taskArns" ])
102
104
last_task_status = last_task_info ["tasks" ][0 ]["lastStatus" ]
103
105
last_task_reason = last_task_info ["tasks" ][0 ]["stoppedReason" ]
104
106
if "reason" in last_task_info ["tasks" ][0 ]["containers" ][0 ]:
You can’t perform that action at this time.
0 commit comments