Commit 17957dd4 authored by Ross Smith II's avatar Ross Smith II

Merge pull request #1259 from lflux/openstack-force-ipv4-ssh

Force IPv4 addresses from address pools in Openstack. Fixes #1258
parents be56b5a6 8bf935be
...@@ -26,7 +26,7 @@ func SSHAddress(csp gophercloud.CloudServersProvider, port int) func(multistep.S ...@@ -26,7 +26,7 @@ func SSHAddress(csp gophercloud.CloudServersProvider, port int) func(multistep.S
for pool, addresses := range ip_pools { for pool, addresses := range ip_pools {
if pool != "" { if pool != "" {
for _, address := range addresses { for _, address := range addresses {
if address.Addr != "" { if address.Addr != "" && address.Version == 4 {
return fmt.Sprintf("%s:%d", address.Addr, port), nil return fmt.Sprintf("%s:%d", address.Addr, port), nil
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment