]> Frank Brehm's Git Trees - pixelpark/puppetmaster-webhooks.git/commitdiff
Changing output
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 3 Jan 2019 16:56:02 +0000 (17:56 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 3 Jan 2019 16:56:02 +0000 (17:56 +0100)
lib/webhooks/deploy.py
lib/webhooks/r10k.py

index 3c715262d2431a4474d762f4bab474a106f6f322..78a00828c75b819e6ddad0d2ac246ea82032549b 100644 (file)
@@ -237,7 +237,7 @@ class WebhookDeployApp(BaseHookApp):
                 if branch:
                     cmd += ['-b', branch]
 
-            proc = self.handler.call(cmd, sudo=self.do_sudo)
+            proc = self.handler.call(cmd, sudo=self.do_sudo, quiet=True)
 
             if proc.stdout:
                 msg = _("Output:") + "\n{}".format(proc.stdout)
@@ -284,7 +284,7 @@ class WebhookDeployApp(BaseHookApp):
             LOG.info(_("Compiling language catalogues by calling {!r} ...").format(
                 str(xlate_script)))
             cmd = [script_abs]
-            proc = self.handler.call(cmd, sudo=self.do_sudo)
+            proc = self.handler.call(cmd, sudo=self.do_sudo, quiet=True)
 
             if proc.stdout:
                 msg = _("Output:") + "\n{}".format(proc.stdout)
index f8906715c8e161cfbec6620b50563d775cc42e7c..5e8faf29ed8112d99bf4a9234a23e823e4f580b6 100644 (file)
@@ -306,7 +306,7 @@ class R10kHookApp(BaseHookApp):
         if self.verbose > 3:
             cmd.append('--debug')
 
-        proc = self.handler.call(cmd, sudo=self.do_sudo)
+        proc = self.handler.call(cmd, sudo=self.do_sudo, quiet=True)
 
         if proc.stdout:
             msg = _("Output:") + '\n' + proc.stdout
@@ -349,7 +349,7 @@ class R10kHookApp(BaseHookApp):
             self.ref, '--puppetfile', '--verbose', r10k_loglevel
         ]
 
-        proc = self.handler.call(cmd, sudo=self.do_sudo)
+        proc = self.handler.call(cmd, sudo=self.do_sudo, quiet=True)
 
         if proc.stdout:
             msg = _("Output:") + '\n' + proc.stdout