Skip to content

Commit

Permalink
azurerm_mssql_virtual_machine - Fix crash when setting `auto_patchi…
Browse files Browse the repository at this point in the history
…ng` #9388
  • Loading branch information
mbfrahry committed Nov 19, 2020
1 parent ab790d0 commit 7653615
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ func expandArmSqlVirtualMachineAutoPatchingSettings(input []interface{}) *sqlvir
}

func flattenArmSqlVirtualMachineAutoPatching(autoPatching *sqlvirtualmachine.AutoPatchingSettings) []interface{} {
if autoPatching == nil || !*autoPatching.Enable {
if autoPatching == nil || autoPatching.Enable == nil || !*autoPatching.Enable {
return []interface{}{}
}

Expand Down

0 comments on commit 7653615

Please sign in to comment.