From 38e6a3795b142e8c682c589d82fe4598d9245c99 Mon Sep 17 00:00:00 2001 From: Scottie Enriquez Date: Thu, 21 Mar 2024 14:20:10 -0700 Subject: [PATCH] Fixing single quote issue affecting Python 3.11 --- sam_sp_ri_utility/services/savings_plans.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sam_sp_ri_utility/services/savings_plans.py b/sam_sp_ri_utility/services/savings_plans.py index 25cc660..94ce204 100644 --- a/sam_sp_ri_utility/services/savings_plans.py +++ b/sam_sp_ri_utility/services/savings_plans.py @@ -74,7 +74,7 @@ def create_savings_plans_custom_line_items(inclusive_start_billing_period, exclu charge_type = 'Credit' if account_benefit >= 0 else 'Fee' new_custom_line_item = { 'Name': f'SavingsPlan-{savings_plan_guid}-Account-{account.get("AccountId")}-Benefit-{start_date_string}', - 'Description': f'{charge_type} from {savings_plan.get("SavingsPlanArn")} for {account.get("AccountName")} based on {round(running_hour_percentage * 100, 2)}% of normalized hours for {compute_description_text.rstrip(', ')}', + 'Description': f'{charge_type} from {savings_plan.get("SavingsPlanArn")} for {account.get("AccountName")} based on {round(running_hour_percentage * 100, 2)}% of normalized hours for {compute_description_text.rstrip(", ")}', 'BillingGroupArn': account.get('BillingGroupArn'), 'BillingPeriodRange': {'InclusiveStartBillingPeriod': inclusive_start_billing_period_string, 'ExclusiveEndBillingPeriod': exclusive_end_billing_period_string},