Skip to content

Commit 67ad758

Browse files
committed
Lint worker-deploy
1 parent 1ba5208 commit 67ad758

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/worker-deploy.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@
6868
)
6969

7070
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"])
7273
)
7374
ecs_deploy_status = ecs_deploy[0]["rolloutState"]
7475

@@ -98,7 +99,8 @@ def rollback():
9899
# Check if containers are being stoped
99100
last_task = task.list_tasks(cluster_name, task.ecsDeployId)
100101
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"])
102104
last_task_status = last_task_info["tasks"][0]["lastStatus"]
103105
last_task_reason = last_task_info["tasks"][0]["stoppedReason"]
104106
if "reason" in last_task_info["tasks"][0]["containers"][0]:

0 commit comments

Comments
 (0)