mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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)
|
||||
}
|
||||
|
||||
if n["access_network"].(bool) {
|
||||
if an, ok := n["access_network"].(bool); ok && an {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user