Skip to content

Commit

Permalink
azurerm_postgresql_aad_administrator: Fix state migration (#17732)
Browse files Browse the repository at this point in the history
  • Loading branch information
favoretti committed Jul 25, 2022
1 parent dd35d50 commit cb8ecc1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (PostgresqlAADAdministratorV0ToV1) UpgradeFunc() pluginsdk.StateUpgraderFun

newId := serveradministrators.NewServerID(id.SubscriptionId, id.ResourceGroup, id.ServerName)
log.Printf("[DEBUG] Updating ID from %q to %q", oldId, newId)
rawState["id"] = newId
rawState["id"] = newId.ID()

return rawState, nil
}
Expand Down

0 comments on commit cb8ecc1

Please sign in to comment.