Skip to content

Commit

Permalink
Fix error in resource azurerm_virtual_machine_scale_set when using …
Browse files Browse the repository at this point in the history
…`additional_unattend_config` in `os_profile_windows_config` as already fixed for `azurerm_virtual_machine` in 443dd11
  • Loading branch information
dominik-lekse committed Aug 24, 2017
1 parent f1e41cf commit a9b29f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azurerm/resource_arm_virtual_machine_scale_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func resourceArmVirtualMachineScaleSet() *schema.Resource {
},
},
"additional_unattend_config": {
Type: schema.TypeSet,
Type: schema.TypeList,
Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
Expand Down Expand Up @@ -1445,7 +1445,7 @@ func expandAzureRmVirtualMachineScaleSetOsProfileWindowsConfig(d *schema.Resourc
}
}
if v := osProfileConfig["additional_unattend_config"]; v != nil {
additionalConfig := v.(*schema.Set).List()
additionalConfig := v.([]interface{})
if len(additionalConfig) > 0 {
additionalConfigContent := make([]compute.AdditionalUnattendContent, 0, len(additionalConfig))
for _, addConfig := range additionalConfig {
Expand Down

0 comments on commit a9b29f4

Please sign in to comment.