Merge pull request #1259 from lflux/openstack-force-ipv4-ssh
Force IPv4 addresses from address pools in Openstack. Fixes #1258
This commit is contained in:
commit
17957dd40d
|
@ -26,7 +26,7 @@ func SSHAddress(csp gophercloud.CloudServersProvider, port int) func(multistep.S
|
|||
for pool, addresses := range ip_pools {
|
||||
if pool != "" {
|
||||
for _, address := range addresses {
|
||||
if address.Addr != "" {
|
||||
if address.Addr != "" && address.Version == 4 {
|
||||
return fmt.Sprintf("%s:%d", address.Addr, port), nil
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue