provider/openstack: Fix crash when access_network was not defined
This commit is contained in:
parent
bb4c58a683
commit
7ccaaa12be
|
@ -998,7 +998,7 @@ func getInstanceAccessAddresses(d *schema.ResourceData, networks []map[string]in
|
||||||
hostv6 = n["fixed_ip_v6"].(string)
|
hostv6 = n["fixed_ip_v6"].(string)
|
||||||
}
|
}
|
||||||
|
|
||||||
if n["access_network"].(bool) {
|
if an, ok := n["access_network"].(bool); ok && an {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue