Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 1 addition & 4 deletions core/utils_aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ def build_aws_cost_inventory(
json.dump(cost_and_usage, raw_file, indent=4)

# Insert structured data into SQLite
currency = "USD"
with connect(db_path=db_path) as conn:
cursor = conn.cursor()

Expand Down Expand Up @@ -314,7 +315,3 @@ def build_aws_cost_inventory(
except Exception as e:
logger.error(f"Error creating AWS cost inventory: {str(e)}", exc_info=True)
raise

except Exception as e:
logger.error(f"Error creating AWS cost inventory: {str(e)}", exc_info=True)
raise
1 change: 1 addition & 0 deletions core/utils_azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ def build_azure_cost_inventory(
json.dump(cost_data.as_dict(), raw_file, indent=4)

# Insert structured cost data into SQLite
currency = "USD"
with connect(db_path=db_path) as conn:
cursor = conn.cursor()

Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def run_assessment(config, provider_name):
if pdf_report_path:
console.print(f"PDF Report: {pdf_report_path}", style="cyan")
json_report_path = report_status.get("reports", {}).get("JSON")
if html_report_path:
if json_report_path:
console.print(f"JSON Report: {json_report_path}", style="cyan")
console.print("-------------------------------------------")

Expand Down