From 989304ba4605d0198d5bd603a05a8c3675df8ff4 Mon Sep 17 00:00:00 2001 From: Emilian Bogdan Date: Tue, 7 Apr 2026 16:39:15 +0300 Subject: [PATCH] removing leftover .decode() in netplan Removing leftover .decode() which was already moved in the main method that executes commands via ssh --- coriolis/osmorphing/netpreserver/netplan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coriolis/osmorphing/netpreserver/netplan.py b/coriolis/osmorphing/netpreserver/netplan.py index e2c566cb..2dccb11c 100644 --- a/coriolis/osmorphing/netpreserver/netplan.py +++ b/coriolis/osmorphing/netpreserver/netplan.py @@ -33,7 +33,7 @@ def parse_network(self): cfg_path = "%s/%s" % (self.netplan_base, cfg) try: contents = yaml.safe_load(self.osmorphing_tool._read_file_sudo( - cfg_path).decode()) + cfg_path)) LOG.info("Parsing netplan configuration '%s'", cfg_path) ifaces = contents.get('network', {}).get('ethernets', {}) for iface, net_cfg in ifaces.items():