Merge pull request #4966 from jtopjian/openstack-fix-access-network
provider/openstack: Fix crash when access_network was not defined
This commit is contained in:
commit
44970d4490
|
@ -998,7 +998,7 @@ func getInstanceAccessAddresses(d *schema.ResourceData, networks []map[string]in
|
|||
hostv6 = n["fixed_ip_v6"].(string)
|
||||
}
|
||||
|
||||
if n["access_network"].(bool) {
|
||||
if an, ok := n["access_network"].(bool); ok && an {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue