Skip to content

Commit

Permalink
c7n-org - add policy.data as a var for report
Browse files Browse the repository at this point in the history
  • Loading branch information
kentnsw committed Sep 19, 2022
1 parent c46abfc commit eb1d6ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/c7n_org/c7n_org/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,11 @@ def report_account(account, region, policies_config, output_path, cache_path, de

for r in policy_records:
r['policy'] = p.name
r['policy_data'] = p.data
r['region'] = p.options.region
r['account'] = account['name']
r['account_id'] = account['account_id']
r['now'] = datetime.utcnow()
for t in account.get('tags', ()):
if ':' in t:
k, v = t.split(':', 1)
Expand Down

0 comments on commit eb1d6ca

Please sign in to comment.