Skip to content

Commit

Permalink
Fix nil pointer dereference panic in azurerm_virtual_machine_scale_se…
Browse files Browse the repository at this point in the history
…t resource when azure-sdk-for-go client returns nil in AdditionalUnattendContent.Content
  • Loading branch information
dominik-lekse committed Aug 23, 2017
1 parent 6958ee3 commit f1e41cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion azurerm/resource_arm_virtual_machine_scale_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,10 @@ func flattenAzureRmVirtualMachineScaleSetOsProfileWindowsConfig(config *compute.
c["pass"] = i.PassName
c["component"] = i.ComponentName
c["setting_name"] = i.SettingName
c["content"] = *i.Content

if i.Content != nil {
c["content"] = *i.Content
}

content = append(content, c)
}
Expand Down

0 comments on commit f1e41cf

Please sign in to comment.