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():