summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-06-20 14:08:46 +0200
committerChristian Breunig <christian@breunig.cc>2026-06-20 14:12:23 +0200
commit8f3e63d2ac2a29365733fc0e85e8f53e412cb5d1 (patch)
tree9aef90e6c6514d54cc3b0e69d935e184ed7a0a67 /python
parent6c0fd99099a6251a12bc2287d5ba2ab115cd8015 (diff)
downloadvyos-1x-8f3e63d2ac2a29365733fc0e85e8f53e412cb5d1.tar.gz
vyos-1x-8f3e63d2ac2a29365733fc0e85e8f53e412cb5d1.zip
utils: T9003: get_wrapper() should return empty list instead of None.
get_wrapper() now returns [] instead of None. It makes the existing string format usage in cmd() cleaner, as it will show just the command in debug runs rather then "None /[path/to/cmd"
Diffstat (limited to 'python')
-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 e78c0b969..28027684c 100644
--- a/python/vyos/utils/process.py
+++ b/python/vyos/utils/process.py
@@ -23,7 +23,7 @@ from subprocess import STDOUT
from subprocess import DEVNULL
def get_wrapper(vrf, netns):
- wrapper = None
+ wrapper = []
if vrf:
wrapper = ['ip', 'vrf', 'exec', vrf]
elif netns: