Skip to content

Commit

Permalink
Fixing single quote issue affecting Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
scottenriquez committed Mar 21, 2024
1 parent fea3b2f commit 38e6a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sam_sp_ri_utility/services/savings_plans.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 38e6a37

Please sign in to comment.