Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Azure resource-group param #520

Merged
merged 3 commits into from
Jul 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading