Skip to content

Commit

Permalink
- iotpolicy.get_outputs() will not obtain the policy arn if it does n…
Browse files Browse the repository at this point in the history
…ot exist when called.
  • Loading branch information
gitwater committed Mar 30, 2021
1 parent 759a666 commit 42545e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/paco/stack/botostacks/iotpolicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ def init(self):

def get_outputs(self):
"Get all Outputs of a Resource"
if getattr(self, 'policy_arn', None) == None:
iotpolicyclient = IoTPolicyClient(
self.paco_ctx.project,
self.account_ctx,
self.aws_region,
self.resource
)
self.policy_arn = iotpolicyclient.policy_exists()
return {'IoTPolicyArn': self.policy_arn}

def provision(self):
Expand Down

0 comments on commit 42545e4

Please sign in to comment.