mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
python3: utils.exec_command now returns str and not bytes
Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
@@ -310,7 +310,7 @@ class IPRoute2(Cache, Requirements):
|
||||
try:
|
||||
ps = subprocess.Popen(shlex.split(cmd), stdout=subprocess.PIPE, close_fds=False)
|
||||
utils.enable_subprocess_signal_forwarding(ps, signal.SIGINT)
|
||||
output = subprocess.check_output(("grep", "00:00:00:00:00:00"), stdin=ps.stdout)
|
||||
output = subprocess.check_output(("grep", "00:00:00:00:00:00"), stdin=ps.stdout).decode()
|
||||
ps.wait()
|
||||
utils.disable_subprocess_signal_forwarding(signal.SIGINT)
|
||||
try:
|
||||
|
Reference in New Issue
Block a user