Explorar o código

Fix issue of trying to decode a str

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
MiningPickaxe hai 2 meses
pai
achega
1ebf5be53c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      coriolis/osmorphing/netpreserver/interfaces.py

+ 1 - 1
coriolis/osmorphing/netpreserver/interfaces.py

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