Fix another issue from #11625 that's causing null entries in ssh_keys
This commit is contained in:
parent
4a782583b6
commit
1320347b7b
|
@ -1033,7 +1033,7 @@ func flattenAzureRmVirtualMachineOsProfileLinuxConfiguration(config *compute.Lin
|
|||
result["disable_password_authentication"] = *config.DisablePasswordAuthentication
|
||||
|
||||
if config.SSH != nil && len(*config.SSH.PublicKeys) > 0 {
|
||||
ssh_keys := make([]map[string]interface{}, len(*config.SSH.PublicKeys))
|
||||
ssh_keys := make([]map[string]interface{}, 0, len(*config.SSH.PublicKeys))
|
||||
for _, i := range *config.SSH.PublicKeys {
|
||||
key := make(map[string]interface{})
|
||||
key["path"] = *i.Path
|
||||
|
|
Loading…
Reference in New Issue