Merge "Fix Openstack topology discovery for Python 2"

This commit is contained in:
Zuul 2019-10-10 14:29:54 +00:00 committed by Gerrit Code Review
commit ad6cfba955

View File

@ -349,8 +349,8 @@ class OpenStackTopology(tobiko.SharedFixture):
except (netaddr.AddrFormatError, ValueError):
try:
addrinfo = socket.getaddrinfo(
host=obj, port=22,
flags=(socket.AI_CANONNAME | socket.IPPROTO_TCP))
obj, 22, 0, 0,
socket.AI_CANONNAME | socket.IPPROTO_TCP)
except socket.gaierror:
ips = tobiko.select([])
else: