From 875b1cf14ae37f84ec115151b2859e4b4610ffcb Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 3 Jan 2019 17:56:02 +0100 Subject: [PATCH] Changing output --- lib/webhooks/deploy.py | 4 ++-- lib/webhooks/r10k.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5