Skip to content

Commit

Permalink
Minor fix to cloudformation__download_data
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Mar 8, 2024
1 parent 17c652f commit 04df484
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pacu/modules/cloudformation__download_data/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ def default(self, obj):
print(f"Error: Could not enumerate region {region}")
print(f"Error: {e}")
continue
exports = client.list_exports()
if exports:
with outfile('exports', region) as (f):
json.dump(exports, f, indent=1)
find_secrets(json.dumps(exports))
exports = client.list_exports()
if exports:
with outfile('exports', region) as (f):
json.dump(exports, f, indent=1)
find_secrets(json.dumps(exports))
while 'NextToken' in stacks_data:
stacks_data = client.describe_stacks(NextToken=(stacks_data['NextToken']))
stacks += stacks_data['Stacks']
Expand Down

0 comments on commit 04df484

Please sign in to comment.