]> Frank Brehm's Git Trees - pixelpark/puppetmaster-webhooks.git/commitdiff
Changes on error output
authorFrank Brehm <frank.brehm@pixelpark.com>
Fri, 27 Jan 2017 12:42:22 +0000 (13:42 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Fri, 27 Jan 2017 12:42:22 +0000 (13:42 +0100)
lib/webhooks/__init__.py
lib/webhooks/deploy.py

index 1b9460ad4d8ba35883b63faabaf265296630da87..9dca16769f6fb1bd18b629c227a656b81adae7fd 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/env python3
 # -*- coding: utf-8 -*-
 
-__version__ = '0.3.1'
+__version__ = '0.3.2'
 
 # vim: ts=4 et list
index 19e90af2c079bb0d9e6f2ed7018b7654107d353a..18b6012512af04c637ad5a5d55f156e919ae22e9 100644 (file)
@@ -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)