Skip to content

Commit

Permalink
Fix finops
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-afanasiev committed Dec 17, 2024
1 parent 3e7a56c commit 5945395
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/handlers/high_level_reports_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def _operational_finops_custom(rep: ReportMetrics) -> dict:
result = []
for ss, rules in data['data'].items():
for rule in rules:
rule['region_data'] = {
rule['regions_data'] = {
region: {'resources': resources}
for region, resources in rule.pop('resources', {}).items()
}
Expand Down
2 changes: 1 addition & 1 deletion tests/data/expected/operational/finops_report.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"category": "Unused Resources",
"severity": "Unknown",
"resource_type": "aws.security-group",
"region_data": {
"regions_data": {
"eu-central-1": {
"resources": [
{
Expand Down

0 comments on commit 5945395

Please sign in to comment.