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:
Joe Topjian 2016-02-02 16:21:41 -07:00
commit 44970d4490
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)
}
if n["access_network"].(bool) {
if an, ok := n["access_network"].(bool); ok && an {
break
}
}