summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)