summaryrefslogtreecommitdiff
path: root/python/vyos/utils/process.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-09-03 14:34:39 +0200
committerChristian Breunig <christian@breunig.cc>2023-09-03 14:34:42 +0200
commit00a9f6a39f556ee6eb8ac669dd86f5095c21b22f (patch)
treef9a796b0a5a8ac3a3994cb7babddcf4c580bbdd7 /python/vyos/utils/process.py
parent114f8a9a66e49449e09ac3a1721db42626e54212 (diff)
downloadvyos-1x-00a9f6a39f556ee6eb8ac669dd86f5095c21b22f.tar.gz
vyos-1x-00a9f6a39f556ee6eb8ac669dd86f5095c21b22f.zip
netns: T5241: improve get_interface_namespace() robustness
Diffstat (limited to 'python/vyos/utils/process.py')
-rw-r--r--python/vyos/utils/process.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/utils/process.py b/python/vyos/utils/process.py
index e09c7d86d..c2ef98140 100644
--- a/python/vyos/utils/process.py
+++ b/python/vyos/utils/process.py
@@ -170,7 +170,7 @@ def rc_cmd(command, flag='', shell=None, input=None, timeout=None, env=None,
(1, 'Device "eth99" does not exist.')
"""
out, code = popen(
- command, flag,
+ command.lstrip(), flag,
stdout=stdout, stderr=stderr,
input=input, timeout=timeout,
env=env, shell=shell,