mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
python3: popen.communicate returns bytes (str are expected)
Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
@ -423,7 +423,7 @@ class utils():
|
||||
cmd_returncode,
|
||||
cmd_output,
|
||||
stdin))
|
||||
return cmd_output
|
||||
return cmd_output.decode() if cmd_output else None
|
||||
|
||||
@classmethod
|
||||
def exec_user_command(cls, cmd, close_fds=False, stdout=True,
|
||||
|
Reference in New Issue
Block a user