Skip to content

Commit

Permalink
Fix Azure resource group exports
Browse files Browse the repository at this point in the history
  • Loading branch information
esebesto committed Jul 29, 2024
1 parent e7295d0 commit 3d3ef73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nise/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,7 @@ def azure_create_report(options): # noqa: C901
storage_account_name = options.get("azure_account_name")
azure_prefix_name = options.get("azure_prefix_name")
azure_report_name = options.get("azure_report_name")
resource_group = options.get("resource_group", False)
write_monthly = options.get("write_monthly", False)
for month in months:
data = []
Expand All @@ -794,6 +795,7 @@ def azure_create_report(options): # noqa: C901
if attributes.get("meter_cache"):
meter_cache.update(attributes.get("meter_cache")) # needed so that meter_cache can be defined in yaml
attributes["meter_cache"] = meter_cache
attributes["resource_group"] = resource_group
gen = generator_cls(gen_start_date, gen_end_date, currency, account_info, attributes)
azure_columns = gen.azure_columns
data += gen.generate_data()
Expand Down

0 comments on commit 3d3ef73

Please sign in to comment.