Skip to content

Commit

Permalink
feat(powershell72): fix tests 2
Browse files Browse the repository at this point in the history
  • Loading branch information
aristosvo committed Nov 24, 2023
1 parent 01e9f65 commit 7490d80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func resourceAutomationPowerShell72ModuleCreate(d *pluginsdk.ResourceData, meta
// for existing global module do update instead of raising ImportAsExistsError
isGlobal := existing.Model != nil && existing.Model.Properties != nil && existing.Model.Properties.IsGlobal != nil && *existing.Model.Properties.IsGlobal
if !response.WasNotFound(existing.HttpResponse) && !isGlobal {
return tf.ImportAsExistsError("azurerm_automation_module", id.ID())
return tf.ImportAsExistsError("azurerm_automation_powershell72_module", id.ID())
}

parameters := module.ModuleCreateOrUpdateParameters{
Expand Down

0 comments on commit 7490d80

Please sign in to comment.