summaryrefslogtreecommitdiff
path: root/python/vyos/util.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2020-04-20 21:52:12 -0500
committerJohn Estabrook <jestabro@vyos.io>2020-04-20 21:52:12 -0500
commit0a3df61f33c46b6508f7815d0780a9ae2485b4ff (patch)
tree63495aef95cc86aabe7d72f93ece72e2d12b9431 /python/vyos/util.py
parent3dfcc251b929d253867714694cac58158eecc036 (diff)
downloadvyos-1x-0a3df61f33c46b6508f7815d0780a9ae2485b4ff.tar.gz
vyos-1x-0a3df61f33c46b6508f7815d0780a9ae2485b4ff.zip
vyos.util: T2347: call will print output only if non-empty
Diffstat (limited to 'python/vyos/util.py')
-rw-r--r--python/vyos/util.py3
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