@@ -24,8 +24,7 @@ def update_service(
24
24
)
25
25
26
26
def describe_services (self , cluster_name , app_name ):
27
- result = self .boto .describe_services (
28
- cluster = cluster_name , services = [app_name ])
27
+ result = self .boto .describe_services (cluster = cluster_name , services = [app_name ])
29
28
30
29
if "taskSets" in result ["services" ][0 ]:
31
30
for taskSet in result ["services" ][0 ]["taskSets" ]:
@@ -45,8 +44,7 @@ def register_task_definition(self, task_definition):
45
44
return result
46
45
47
46
def describe_task_definition (self , task_definition ):
48
- result = self .boto .describe_task_definition (
49
- taskDefinition = task_definition )
47
+ result = self .boto .describe_task_definition (taskDefinition = task_definition )
50
48
self .taskDefArn = result ["taskDefinition" ]["taskDefinitionArn" ]
51
49
return result
52
50
@@ -56,8 +54,7 @@ def list_tasks(self, cluster_name: str, started_by, desired_status="STOPPED"):
56
54
)
57
55
58
56
def describe_tasks (self , cluster_name : str , task_arns ):
59
- result = self .boto .describe_tasks (
60
- cluster = cluster_name , tasks = task_arns )
57
+ result = self .boto .describe_tasks (cluster = cluster_name , tasks = task_arns )
61
58
self .status = result ["tasks" ][0 ]["lastStatus" ]
62
59
return result
63
60
0 commit comments