Skip to content

Commit

Permalink
Merge pull request #25406 from lonegunmanb/f-25252
Browse files Browse the repository at this point in the history
`azurerm_linux_web_app_slot` - Fix type conversion panic
  • Loading branch information
manicminer authored Mar 26, 2024
2 parents 923dc14 + 1950a13 commit 3bb127e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/services/appservice/migration/linux_web_app_slot.go
Original file line number Diff line number Diff line change
Expand Up @@ -1739,8 +1739,8 @@ func (l LinuxWebAppSlotV0toV1) Schema() map[string]*pluginsdk.Schema {

func (l LinuxWebAppSlotV0toV1) UpgradeFunc() pluginsdk.StateUpgraderFunc {
return func(ctx context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error) {
oldId := rawState["service_plan_id"].(string)
if oldId == "" {
oldId, ok := rawState["service_plan_id"].(string)
if !ok || oldId == "" {
return rawState, nil
}
parsedId, err := commonids.ParseAppServicePlanIDInsensitively(oldId)
Expand Down

0 comments on commit 3bb127e

Please sign in to comment.