This fixes an error where _parse_iface_file tries to decode a str. The output of the command getting executed is already getting decoded in coriolis/utils.py exec_cmd_ssh introduced in commit 539fabb9d302b3915cda19357ba0d0ea6d33d25f
@@ -31,7 +31,7 @@ class InterfacesNetPreserver(base.BaseNetPreserver):
curr_ip_address = None
curr_iface = None
interfaces_contents = self.osmorphing_tool._read_file_sudo(
- interface_file).decode()
+ interface_file)
LOG.debug(
"Fetched %s contents: %s", interface_file, interfaces_contents)
for line in interfaces_contents.splitlines():