]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
misc.sh(): Don't log empty output
authorZack Cerza <zack@redhat.com>
Fri, 23 Oct 2015 20:38:53 +0000 (14:38 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 23 Oct 2015 23:42:25 +0000 (17:42 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/misc.py

index e48626a1cdb8ff684ce0a53c651eee1b79f5cdd2..e5b6a7d88edf1915779d6eb8d4a89862001a7403 100644 (file)
@@ -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')