2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-21 16:39:32 +00:00

Fix use of positional arguments in getadrrinfo

The new getaddrinfo needs this as a keyvalue pair.
This commit is contained in:
Jarrod Johnson
2026-08-19 11:05:41 -04:00
parent ec64a6d46c
commit a0d99a15ce
@@ -468,7 +468,7 @@ class Session(object):
sesskey = (bmc, _credkey(userid), _credkey(password), port,
_credkey(kg))
loop = asyncio.get_running_loop()
addrinfos = await loop.getaddrinfo(bmc, port, 0, socket.SOCK_DGRAM)
addrinfos = await loop.getaddrinfo(bmc, port, type=socket.SOCK_DGRAM)
for res in addrinfos:
sockaddr = res[4]
if ipv6support and res[0] == socket.AF_INET: