summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/vyos/utils/process.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/utils/process.py b/python/vyos/utils/process.py
index 3e5576925..7b6f41a99 100644
--- a/python/vyos/utils/process.py
+++ b/python/vyos/utils/process.py
@@ -176,7 +176,7 @@ def run(command, flag='', shell=None, input=None, timeout=None, env=None,
def cmd(command, flag='', shell=None, input=None, timeout=None, env=None,
- stdout=PIPE, stderr=PIPE, decode='utf-8', raising=None, message='',
+ stdout=PIPE, stderr=PIPE, raising=None, message='',
expect=[0], vrf=None, netns=None):
"""
A wrapper around popen, which returns the stdout and
@@ -192,7 +192,7 @@ def cmd(command, flag='', shell=None, input=None, timeout=None, env=None,
stdout=stdout, stderr=stderr,
input=input, timeout=timeout,
env=env, shell=shell,
- decode=decode,
+ decode='utf-8',
vrf=vrf,
netns=netns,
)