Fix Openstack topology discovery for Python 2

On Python 2 socket.getaddrinfo() takes no keyword arguments

Change-Id: Ib36745038e530bf00829cc28894422a382b7bbf0
This commit is contained in:
Federico Ressi 2019-10-10 12:46:21 +02:00
parent 360bbadd1f
commit 0e789aab3b

@ -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: