Explorar o código

removing leftover .decode() in netplan

Removing leftover .decode() which was already moved in the main method that executes commands via ssh
Emilian Bogdan hai 1 mes
pai
achega
dae596fbfa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      coriolis/osmorphing/netpreserver/netplan.py

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

@@ -33,7 +33,7 @@ class NetplanNetPreserver(base.BaseNetPreserver):
             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():