Просмотр исходного кода

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 2 месяцев назад
Родитель
Сommit
1ebf5be53c
1 измененных файлов с 1 добавлено и 1 удалено
  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():