summaryrefslogtreecommitdiff
path: root/python/vyos/utils/process.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-09-05 19:37:16 +0200
committerChristian Breunig <christian@breunig.cc>2023-09-05 19:37:16 +0200
commitfad6519932586664c2c53e41b8deb276dd1dde65 (patch)
treeda2eb57847f2a67f10189bbfc174dd693a3a3108 /python/vyos/utils/process.py
parent487c817ea320ddabcdaf41a8112937a29c19443e (diff)
parent5c2b49092ca1fc56cf198ca89630ec97fddd64b3 (diff)
downloadvyos-1x-fad6519932586664c2c53e41b8deb276dd1dde65.tar.gz
vyos-1x-fad6519932586664c2c53e41b8deb276dd1dde65.zip
Merge branch 'netns' into current
* netns: smoketest: T5241: re-work netns assertions and provide common utility helper netns: T5241: simplify network namespace handling netns: T5241: improve get_interface_namespace() robustness netns: T5241: use common interface_exists() helper netns: T5241: provide is_netns_interface utility helper T5241: Support netns for veth and dummy interfaces
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,