diff options
author | Christian Breunig <christian@breunig.cc> | 2023-09-03 14:34:39 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-09-03 14:34:42 +0200 |
commit | 00a9f6a39f556ee6eb8ac669dd86f5095c21b22f (patch) | |
tree | f9a796b0a5a8ac3a3994cb7babddcf4c580bbdd7 /python/vyos/utils/process.py | |
parent | 114f8a9a66e49449e09ac3a1721db42626e54212 (diff) | |
download | vyos-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.py | 2 |
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, |