diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-06-20 14:08:46 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-06-20 14:12:23 +0200 |
| commit | 8f3e63d2ac2a29365733fc0e85e8f53e412cb5d1 (patch) | |
| tree | 9aef90e6c6514d54cc3b0e69d935e184ed7a0a67 /python | |
| parent | 6c0fd99099a6251a12bc2287d5ba2ab115cd8015 (diff) | |
| download | vyos-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.py | 2 |
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: |
