Merge pull request #13755 from StephenWeatherford/11625c
Fix another issue from #11625 that's causing null entries in ssh_keys
This commit is contained in:
commit
6e698fd5fe
|
@ -1033,7 +1033,7 @@ func flattenAzureRmVirtualMachineOsProfileLinuxConfiguration(config *compute.Lin
|
||||||
result["disable_password_authentication"] = *config.DisablePasswordAuthentication
|
result["disable_password_authentication"] = *config.DisablePasswordAuthentication
|
||||||
|
|
||||||
if config.SSH != nil && len(*config.SSH.PublicKeys) > 0 {
|
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 {
|
for _, i := range *config.SSH.PublicKeys {
|
||||||
key := make(map[string]interface{})
|
key := make(map[string]interface{})
|
||||||
key["path"] = *i.Path
|
key["path"] = *i.Path
|
||||||
|
|
Loading…
Reference in New Issue