Skip to content

Commit

Permalink
azurerm_linux_virtual_machine_scale_set - fixes crash with `boot_di…
Browse files Browse the repository at this point in the history
…agnositics` #6569
  • Loading branch information
mbfrahry committed Apr 22, 2020
1 parent 7364786 commit 8633915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/internal/services/compute/shared_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func bootDiagnosticsSchema() *schema.Schema {
}

func expandBootDiagnostics(input []interface{}) *compute.DiagnosticsProfile {
if len(input) == 0 {
if len(input) == 0 || input[0] == nil {
return &compute.DiagnosticsProfile{
BootDiagnostics: &compute.BootDiagnostics{
Enabled: utils.Bool(false),
Expand Down

0 comments on commit 8633915

Please sign in to comment.