From 8f3e63d2ac2a29365733fc0e85e8f53e412cb5d1 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 20 Jun 2026 14:08:46 +0200 Subject: 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" --- python/vyos/utils/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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: -- cgit v1.2.3