fixed nil check in resourceArmVirtualMachineStorageOsDiskHash
This commit is contained in:
parent
909976eebe
commit
00df2204a2
|
@ -808,9 +808,11 @@ func resourceArmVirtualMachineStorageOsDiskHash(v interface{}) int {
|
|||
if m["vhd_uri"] != nil {
|
||||
buf.WriteString(fmt.Sprintf("%s-", m["vhd_uri"].(string)))
|
||||
}
|
||||
managedDisk := m["managed_disk"].(map[string]interface{})
|
||||
if managedDisk["storage_account_type"] != nil {
|
||||
buf.WriteString(fmt.Sprintf("%s-", managedDisk["storage_account_type"].(string)))
|
||||
if m["managed_disk"] != nil {
|
||||
managedDisk := m["managed_disk"].(map[string]interface{})
|
||||
if managedDisk["storage_account_type"] != nil {
|
||||
buf.WriteString(fmt.Sprintf("%s-", managedDisk["storage_account_type"].(string)))
|
||||
}
|
||||
}
|
||||
return hashcode.String(buf.String())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue