Skip to content

Commit

Permalink
Issue #5 resolve bug in get_object, put_object
Browse files Browse the repository at this point in the history
  • Loading branch information
cschneider-vertical-relevance committed May 3, 2022
1 parent 6133af3 commit 621837f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions stacks/control_broker_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __init__(
self.deploy_outer_sfn_lambdas()
self.deploy_outer_sfn()

self.input_reader_roles: List[aws_iam.Role] = [
self.Input_reader_roles: List[aws_iam.Role] = [
self.lambda_evaluate_cloudformation_by_opa.role,
self.lambda_pac_evaluation_router.role,
]
Expand All @@ -79,7 +79,7 @@ def __init__(
CfnOutput(
self,
"InputReaderArns",
value=json.dumps([r.role_arn for r in self.input_reader_roles]),
value=json.dumps([r.role_arn for r in self.Input_reader_roles]),
)

def deploy_utils(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_object(*,bucket,key):
print(f'ClientError:\nbucket:\n{bucket}\nkey:\n{key}\n{e}')
raise
else:
print(f'no ClientError get_object:\nbucket:\n{bucket}\nkey:\n{key}\n{e}')
print(f'no ClientError get_object:\nbucket:\n{bucket}\nkey:\n{key}')
body = r['Body']
content = json.loads(body.read().decode('utf-8'))
return content
Expand All @@ -39,7 +39,7 @@ def put_object(*,bucket,key,object_:dict):
print(f'ClientError:\nbucket:\n{bucket}\nkey:\n{key}\n{e}')
raise
else:
print(f'no ClientError put_object:\nbucket:\n{bucket}\nkey:\n{key}\n{e}')
print(f'no ClientError put_object:\nbucket:\n{bucket}\nkey:\n{key}')
return True

class CloudControl():
Expand Down

0 comments on commit 621837f

Please sign in to comment.