Skip to content

Commit dfb685a

Browse files
committed
black fix
1 parent acce068 commit dfb685a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

runtime-manager-action/script.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,13 @@ def runtime_manager_run_self_hosted_deploy(request_data: dict, manifest: dict):
136136
url=url, body=request_data, headers=HEADERS, timeout=TIMEOUT
137137
)
138138

139-
140139
if response.status_code == 201:
141140
try:
142141
# Parse the response and extract relevant data
143142
response_data = response.json()
144-
print(f"> Deploy successfully started:\n{json.dumps(response_data, indent=4)}")
143+
print(
144+
f"> Deploy successfully started:\n{json.dumps(response_data, indent=4)}"
145+
)
145146

146147
# Save the response to the output log
147148
save_output(response_data)

script.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def rollback_deploy_run(run_action: RunAction):
4444
run_action("runtime-rollback-action")
4545
run_tasks("rollback-output.log", run_action)
4646

47+
4748
def run_tasks(file_tasks: str, run_action: RunAction):
4849
with open(file_tasks, "r") as file:
4950
data = json.loads(file.read().replace("'", '"'))
@@ -66,7 +67,7 @@ def run_tasks(file_tasks: str, run_action: RunAction):
6667
elif "PLAN" == task_type:
6768
runner and runner(run_id=data.get("runId"))
6869
else:
69-
runner and runner(run_task_id=t["runTaskId"])
70+
runner and runner(run_task_id=t["runTaskId"])
7071

7172

7273
def run(metadata):

0 commit comments

Comments
 (0)