Skip to content

Commit

Permalink
hashicorp#24906 : Change of condition to fix panics during import of …
Browse files Browse the repository at this point in the history
…non-existing resources
  • Loading branch information
harshavmb committed Dec 4, 2023
1 parent 3c2b97a commit bed17a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func resourceAppServiceCustomHostnameBindingCreate(d *pluginsdk.ResourceData, me
}
}

if !utils.ResponseWasNotFound(existing.Response) {
if existing.ID != nil && *existing.ID != "" {
return tf.ImportAsExistsError("azurerm_app_service_custom_hostname_binding", *existing.ID)
}
}
Expand Down

0 comments on commit bed17a2

Please sign in to comment.