Skip to content

Commit

Permalink
Fix datacenter index key to not change case of cloud_provider or regi…
Browse files Browse the repository at this point in the history
…on (TERRA-71)
  • Loading branch information
emerkle826 committed Jul 7, 2022
1 parent d840035 commit f17b086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/resource_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ func flattenDatabase(db *astra.Database) map[string]interface{} {
for index, dc := range *db.Info.Datacenters {
regions[index] = dc.Region
// make a datacenter key of cloud_provider.region
dcKey := strings.ToLower(flatDB["cloud_provider"].(string) + "." + dc.Region)
dcKey := flatDB["cloud_provider"].(string) + "." + dc.Region
datacenters[dcKey] = *dc.Id
}
flatDB["regions"] = regions
Expand Down

0 comments on commit f17b086

Please sign in to comment.