Skip to content

Commit 9647fa0

Browse files
committed
Black formatting
1 parent e1f366e commit 9647fa0

File tree

1 file changed

+8
-11
lines changed
  • aws_sra_examples/solutions/patch_mgmt/patch_mgmt_org/lambda/src

1 file changed

+8
-11
lines changed

aws_sra_examples/solutions/patch_mgmt/patch_mgmt_org/lambda/src/app.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def def_mw_tasks(params: dict, window_id_response: dict, window_target_response:
277277
window1_ids = []
278278
window2_ids = []
279279
window3_ids = []
280-
for response in window_id_response['window1_ids']:
280+
for response in window_id_response["window1_ids"]:
281281
LOGGER.info(f"Maintenance Window Tasks in {response['region']}")
282282
LOGGER.info(response)
283283
ssmclient = session.client("ssm", region_name=response["region"], config=boto3_config)
@@ -288,7 +288,7 @@ def def_mw_tasks(params: dict, window_id_response: dict, window_target_response:
288288
task_operation = params.get("TASK1_OPERATION", "Scan")
289289
task_rebootoption = params.get("TASK1_REBOOTOPTION", "NoReboot")
290290

291-
for response2 in window_target_response['window1_targets']:
291+
for response2 in window_target_response["window1_targets"]:
292292
LOGGER.info(response2)
293293
if (
294294
response2["region"] == response["region"]
@@ -332,7 +332,7 @@ def def_mw_tasks(params: dict, window_id_response: dict, window_target_response:
332332
"account_id": account_id,
333333
}
334334
)
335-
for response in window_id_response['window2_ids']:
335+
for response in window_id_response["window2_ids"]:
336336
LOGGER.info(f"Maintenance Window Tasks in {response['region']}")
337337
LOGGER.info(response)
338338
ssmclient = session.client("ssm", region_name=response["region"], config=boto3_config)
@@ -343,7 +343,7 @@ def def_mw_tasks(params: dict, window_id_response: dict, window_target_response:
343343
task_operation = params.get("TASK2_OPERATION", "Scan")
344344
task_rebootoption = params.get("TASK2_REBOOTOPTION", "NoReboot")
345345

346-
for response2 in window_target_response['window2_targets']:
346+
for response2 in window_target_response["window2_targets"]:
347347
LOGGER.info(response2)
348348
if (
349349
response2["region"] == response["region"]
@@ -387,7 +387,7 @@ def def_mw_tasks(params: dict, window_id_response: dict, window_target_response:
387387
"account_id": account_id,
388388
}
389389
)
390-
for response in window_id_response['window3_ids']:
390+
for response in window_id_response["window3_ids"]:
391391
LOGGER.info(f"Maintenance Window Tasks in {response['region']}")
392392
LOGGER.info(response)
393393
ssmclient = session.client("ssm", region_name=response["region"], config=boto3_config)
@@ -398,7 +398,7 @@ def def_mw_tasks(params: dict, window_id_response: dict, window_target_response:
398398
task_operation = params.get("TASK3_OPERATION", "Scan")
399399
task_rebootoption = params.get("TASK3_REBOOTOPTION", "NoReboot")
400400

401-
for response2 in window_target_response['window3_targets']:
401+
for response2 in window_target_response["window3_targets"]:
402402
LOGGER.info(response2)
403403
if (
404404
response2["region"] == response["region"]
@@ -697,11 +697,8 @@ def process_create_update_event(params: dict, regions: list) -> Dict:
697697
all_window_ids.append(window_ids_raw["window2_ids"])
698698
all_window_ids.append(window_ids_raw["window3_ids"])
699699
window_target_response = define_mw_targets(
700-
params,
701-
window_ids_raw["window1_ids"],
702-
window_ids_raw["window2_ids"],
703-
window_ids_raw["window3_ids"],
704-
account_id)
700+
params, window_ids_raw["window1_ids"], window_ids_raw["window2_ids"], window_ids_raw["window3_ids"], account_id
701+
)
705702
all_window_targets.append(window_target_response)
706703
all_window_tasks.append(def_mw_tasks(params, window_ids_raw, window_target_response, account_id))
707704
return {"window_ids": all_window_ids, "window_targets": all_window_targets, "window_tasks": all_window_tasks}

0 commit comments

Comments
 (0)