Skip to content

Commit

Permalink
Merge pull request #3 from digocorbellini/main
Browse files Browse the repository at this point in the history
main into sorting
  • Loading branch information
digocorbellini authored Jun 16, 2022
2 parents b19f085 + 98cda76 commit ed1d702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ec2pricing/odpricing.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func (c *OnDemandPricing) getRegionForPricingAPI() string {
// endpoints package returns European regions with the word "Europe," but the pricing API expects the word "EU."
// This formatting mismatch is only present with European regions.
// So replace "Europe" with "EU" if it exists in the regionDescription string.
regionDescription = strings.Replace(regionDescription, "Europe", "EU", 2)
regionDescription = strings.ReplaceAll(regionDescription, "Europe", "EU")

return regionDescription
}
Expand Down

0 comments on commit ed1d702

Please sign in to comment.