From fa9db0436fd10b4f97edc375f1300c515180c35f Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 23 Oct 2015 14:38:53 -0600 Subject: [PATCH] misc.sh(): Don't log empty output Signed-off-by: Zack Cerza --- teuthology/misc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/teuthology/misc.py b/teuthology/misc.py index e48626a1cd..e5b6a7d88e 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -1313,5 +1313,6 @@ def sh(command): except subprocess.CalledProcessError as e: log.exception(command + " error " + str(e.output)) raise e - log.debug(command + " output " + str(output)) + if output.strip(): + log.debug(command + " output " + str(output)) return output.decode('utf-8') -- 2.39.5