summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2025-08-05 09:55:07 -0500
committerGitHub <noreply@github.com>2025-08-05 09:55:07 -0500
commit8b9eabd3b636ab5bc1542843f265718c2e245baf (patch)
treefd9442397f96bb5b956e77dec88746a0b3eb06ee /src
parentb9743a6fb473400a8ded6543c37c018389f626a5 (diff)
parent3a502631ede8e1c841f9f40424dad21fb514f504 (diff)
downloadvyos-1x-8b9eabd3b636ab5bc1542843f265718c2e245baf.tar.gz
vyos-1x-8b9eabd3b636ab5bc1542843f265718c2e245baf.zip
Merge pull request #4646 from jestabro/fix-delete-paths
T7688: minor fixes related to management of delete paths
Diffstat (limited to 'src')
-rwxr-xr-xsrc/helpers/vyconf_cli.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/helpers/vyconf_cli.py b/src/helpers/vyconf_cli.py
index 53542dd63..9a614675b 100755
--- a/src/helpers/vyconf_cli.py
+++ b/src/helpers/vyconf_cli.py
@@ -39,9 +39,12 @@ if hasattr(vs, func_name):
else:
sys.exit(f'Call unimplemented: {func_name}')
-out = func()
-if isinstance(out, bool):
+res = func()
+if isinstance(res, bool):
# for use in shell scripts
- sys.exit(int(not out))
+ sys.exit(int(not res))
-print(out)
+if isinstance(res, tuple):
+ out, err = res
+ print(out)
+ sys.exit(err)