Skip to content

Commit

Permalink
Merge pull request #19578 from hashicorp/b/media-state-migration-inse…
Browse files Browse the repository at this point in the history
…nsitive

media: fixing the state migration to parse case-insensitively
  • Loading branch information
tombuildsstuff authored Dec 7, 2022
2 parents 0b9e75a + 6b29a09 commit 10fd2b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/media/migration/service_v0_to_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (ServiceV0ToV1) Schema() map[string]*pluginsdk.Schema {
func (ServiceV0ToV1) UpgradeFunc() pluginsdk.StateUpgraderFunc {
return func(ctx context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error) {
oldIdRaw := rawState["id"].(string)
oldId, err := accounts.ParseMediaServiceID(oldIdRaw)
oldId, err := accounts.ParseMediaServiceIDInsensitively(oldIdRaw)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 10fd2b1

Please sign in to comment.