From 92dea32dd44eb4882000552c39dc71f2ff9b5863 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 2 Feb 2022 08:37:22 -0500 Subject: [PATCH] Change to python 2/3 agnostic syntax --- confluent_osdeploy/common/initramfs/opt/confluent/bin/apiclient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_osdeploy/common/initramfs/opt/confluent/bin/apiclient b/confluent_osdeploy/common/initramfs/opt/confluent/bin/apiclient index 11d3758e..34a2f1ad 100644 --- a/confluent_osdeploy/common/initramfs/opt/confluent/bin/apiclient +++ b/confluent_osdeploy/common/initramfs/opt/confluent/bin/apiclient @@ -138,7 +138,7 @@ def get_net_apikey(nodename, mgr): newpass = newpass.encode('utf8') salt = salt.encode('utf8') crypted = c_crypt(newpass, salt) - for addrinfo in socket.getaddrinfo(mgr, 13001, type=socket.SOCK_STREAM): + for addrinfo in socket.getaddrinfo(mgr, 13001, 0, socket.SOCK_STREAM): try: clisock = socket.socket(addrinfo[0], addrinfo[1]) clisock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)