provider/openstack: Fix crash when access_network was not defined

This commit is contained in:
Joe Topjian 2016-02-02 21:52:29 +00:00
parent bb4c58a683
commit 7ccaaa12be
1 changed files with 1 additions and 1 deletions

View File

@ -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
} }
} }