From 0a3df61f33c46b6508f7815d0780a9ae2485b4ff Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Mon, 20 Apr 2020 21:52:12 -0500 Subject: vyos.util: T2347: call will print output only if non-empty --- python/vyos/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3