Skip to content

Commit

Permalink
provider/openstack: Fix crash when access_network was not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
jtopjian committed Feb 2, 2016
1 parent bb4c58a commit 7ccaaa1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 7ccaaa1

Please sign in to comment.