From: Frank Brehm Date: Thu, 3 Jan 2019 16:56:02 +0000 (+0100) Subject: Changing output X-Git-Tag: 1.6.4^2~77 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=875b1cf14ae37f84ec115151b2859e4b4610ffcb;p=pixelpark%2Fpuppetmaster-webhooks.git Changing output --- diff --git a/lib/webhooks/deploy.py b/lib/webhooks/deploy.py index 3c71526..78a0082 100644 --- a/lib/webhooks/deploy.py +++ b/lib/webhooks/deploy.py @@ -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) diff --git a/lib/webhooks/r10k.py b/lib/webhooks/r10k.py index f890671..5e8faf2 100644 --- a/lib/webhooks/r10k.py +++ b/lib/webhooks/r10k.py @@ -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