Skip to content

Commit dae596f

Browse files
BogdanEmilianDany9966
authored andcommitted
removing leftover .decode() in netplan
Removing leftover .decode() which was already moved in the main method that executes commands via ssh
1 parent c08f8f4 commit dae596f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

coriolis/osmorphing/netpreserver/netplan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def parse_network(self):
3333
cfg_path = "%s/%s" % (self.netplan_base, cfg)
3434
try:
3535
contents = yaml.safe_load(self.osmorphing_tool._read_file_sudo(
36-
cfg_path).decode())
36+
cfg_path))
3737
LOG.info("Parsing netplan configuration '%s'", cfg_path)
3838
ifaces = contents.get('network', {}).get('ethernets', {})
3939
for iface, net_cfg in ifaces.items():

0 commit comments

Comments
 (0)