diff options
author | John Estabrook <jestabro@vyos.io> | 2020-04-20 21:52:12 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2020-04-20 21:52:12 -0500 |
commit | 0a3df61f33c46b6508f7815d0780a9ae2485b4ff (patch) | |
tree | 63495aef95cc86aabe7d72f93ece72e2d12b9431 /python | |
parent | 3dfcc251b929d253867714694cac58158eecc036 (diff) | |
download | vyos-1x-0a3df61f33c46b6508f7815d0780a9ae2485b4ff.tar.gz vyos-1x-0a3df61f33c46b6508f7815d0780a9ae2485b4ff.zip |
vyos.util: T2347: call will print output only if non-empty
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/util.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/vyos/util.py b/python/vyos/util.py index b1d95fbbf..3d4f1c42f 100644 --- a/python/vyos/util.py +++ b/python/vyos/util.py @@ -155,7 +155,8 @@ def call(command, flag='', shell=None, input=None, timeout=None, env=None, env=env, shell=shell, decode=decode, ) - print(out) + if out: + print(out) return code |