From fcf342165ca9ca9638a525b257fcf1d52fd8276b Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 29 Sep 2022 13:15:37 -0400 Subject: [PATCH] Fix apiclient detection of default interface It was failing to record the default interface in its checks. --- .../common/initramfs/opt/confluent/bin/apiclient | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_osdeploy/common/initramfs/opt/confluent/bin/apiclient b/confluent_osdeploy/common/initramfs/opt/confluent/bin/apiclient index 94178acc..03727ae3 100644 --- a/confluent_osdeploy/common/initramfs/opt/confluent/bin/apiclient +++ b/confluent_osdeploy/common/initramfs/opt/confluent/bin/apiclient @@ -255,14 +255,14 @@ class HTTPSClient(client.HTTPConnection, object): if line.startswith('EXTMGRINFO:'): extinfo = line.split(' ')[1] extinfo = extinfo.split('|') - if not mgtiface: - host, mgtiface, havedefault = extinfo[:3] if havedefault == '0' and extinfo[2] == '1': host, mgtiface, havedefault = extinfo[:3] if '%' in host: ifidx = host.split('%', 1)[1] with open('/tmp/confluent.ifidx', 'w+') as ifout: ifout.write(ifidx) + if not mgtiface: + host, mgtiface, havedefault = extinfo[:3] if host: if havedefault == '0': if '%' in host: