Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
moradology committed Nov 2, 2022
1 parent a85f451 commit 4ee139e
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions lambdas/s3-discovery/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ def write_next_step_input(bucket, prefix, param_hash, dict):
}
s3 = boto3.client("s3", **kwargs)
s3.put_object(
Body=json.dumps(dict),
Bucket=bucket,
Key=f"{prefix}{param_hash}.json"
Body=json.dumps(dict), Bucket=bucket, Key=f"{prefix}{param_hash}.json"
)


Expand Down Expand Up @@ -90,15 +88,12 @@ def handler(event, context):
param_hash = sha256(next_step_params)

write_next_step_input(
step_params_bucket,
step_params_prefix,
param_hash,
next_step_params
step_params_bucket, step_params_prefix, param_hash, next_step_params
)

return {
"bucket": f"arn:aws:s3:::{step_params_bucket}",
"key": f"{step_params_prefix}{param_hash}"
"key": f"{step_params_prefix}{param_hash}",
}


Expand Down

0 comments on commit 4ee139e

Please sign in to comment.