summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2025-02-07 17:53:07 +0000
committerGitHub <noreply@github.com>2025-02-07 17:53:07 +0000
commit5463cf3c3c960309dd518d79e9958dff18df3f1a (patch)
tree94ab2a3e5cba93bdaea3d04377c0f7b37e9b5dff
parentedda97d0aa9a15e72627688908dc0058043f9d5d (diff)
parente47feb25a640b469623cfed26e1e4403d82adfa3 (diff)
downloadvyos-1x-5463cf3c3c960309dd518d79e9958dff18df3f1a.tar.gz
vyos-1x-5463cf3c3c960309dd518d79e9958dff18df3f1a.zip
Merge pull request #4333 from HollyGurza/T6058
T6058: Fix popen command wrapper handling
-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 054088325..121b6e240 100644
--- a/python/vyos/utils/process.py
+++ b/python/vyos/utils/process.py
@@ -83,7 +83,7 @@ def popen(command, flag='', shell=None, input=None, timeout=None, env=None,
)
wrapper = get_wrapper(vrf, netns, auth)
- command = f'{wrapper} {command}'
+ command = f'{wrapper} {command}' if wrapper else command
cmd_msg = f"cmd '{command}'"
debug.message(cmd_msg, flag)