From 8fd39c36bb55b94f6fed48fb1163d4afdf713661 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 9 Aug 2024 07:55:42 -0400 Subject: [PATCH] Fix some mistakes in confignet --- confluent_osdeploy/common/profile/scripts/confignet | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/confluent_osdeploy/common/profile/scripts/confignet b/confluent_osdeploy/common/profile/scripts/confignet index 72462834..cb5684a8 100644 --- a/confluent_osdeploy/common/profile/scripts/confignet +++ b/confluent_osdeploy/common/profile/scripts/confignet @@ -86,7 +86,7 @@ def map_idx_to_name(): for line in subprocess.check_output(['ip', 'l']).decode('utf8').splitlines(): if line.startswith(' ') and 'link/' in line: typ = line.split()[0].split('/')[1] - devtype[prevdev] = typ if type != 'ether' else 'ethernet' + devtype[prevdev] = typ if typ != 'ether' else 'ethernet' if line.startswith(' '): continue idx, iface, rst = line.split(':', 2) @@ -413,7 +413,8 @@ class NetworkManager(object): cargs.append(arg) cargs.append(cmdargs[arg]) if u: - cmdargs['connection.interface-name'] = iname + cargs.append('connection.interface-name') + cargs.append(iname) subprocess.check_call(['nmcli', 'c', 'm', u] + cargs) subprocess.check_call(['nmcli', 'c', 'u', u]) else: