From: Frank Brehm Date: Fri, 27 Jan 2017 12:42:22 +0000 (+0100) Subject: Changes on error output X-Git-Tag: 0.8.4~46 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=71429ee3cfde64bc56735352c477ba76e26585a2;p=pixelpark%2Fpuppetmaster-webhooks.git Changes on error output --- diff --git a/lib/webhooks/__init__.py b/lib/webhooks/__init__.py index 1b9460a..9dca167 100644 --- a/lib/webhooks/__init__.py +++ b/lib/webhooks/__init__.py @@ -1,6 +1,6 @@ #!/bin/env python3 # -*- coding: utf-8 -*- -__version__ = '0.3.1' +__version__ = '0.3.2' # vim: ts=4 et list diff --git a/lib/webhooks/deploy.py b/lib/webhooks/deploy.py index 19e90af..18b6012 100644 --- a/lib/webhooks/deploy.py +++ b/lib/webhooks/deploy.py @@ -781,8 +781,11 @@ class WebhookDeployApp(object): LOG.debug("No output.") if stderrdata: msg = "Error messages on '{c}':\n{e}".format(c=cmd_str, e=to_str(stderrdata)) - LOG.warn(msg) - self.error_data.append(msg) + if ret_val: + LOG.warn(msg) + self.error_data.append(msg) + else: + LOG.debug(msg) self.print_out(msg) finally: os.chdir(cur_dir)