From 91d5ccd2e79bd3113ba9d3cbb43c1ff17db1b3ef Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Mon, 29 Apr 2019 16:54:51 +0200 Subject: [PATCH] Setting quiet execution of commands to False --- lib/webhooks/deploy.py | 8 ++++---- lib/webhooks/r10k.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/webhooks/deploy.py b/lib/webhooks/deploy.py index a9f5188..c675108 100644 --- a/lib/webhooks/deploy.py +++ b/lib/webhooks/deploy.py @@ -238,7 +238,7 @@ class WebhookDeployApp(BaseHookApp): cmd += ['-b', branch] has_cloned = True - proc = self.handler.call(cmd, sudo=self.do_sudo, quiet=True) + proc = self.handler.call(cmd, sudo=self.do_sudo, quiet=False) if proc.stdout: msg = _("Output:") + "\n{}".format(proc.stdout) @@ -292,7 +292,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, quiet=True) + proc = self.handler.call(cmd, sudo=self.do_sudo, quiet=False) if proc.stdout: msg = _("Output:") + "\n{}".format(proc.stdout) @@ -319,7 +319,7 @@ class WebhookDeployApp(BaseHookApp): # Initialize the submodules recorded in the index LOG.info(_("Initializing GIT submodules in working directory {!r}.").format(os.getcwd())) cmd = ['git', 'submodule', 'init'] - proc = self.handler.call(cmd, sudo=self.do_sudo, quiet=True) + proc = self.handler.call(cmd, sudo=self.do_sudo, quiet=False) if proc.stdout: msg = _("Output:") + "\n{}".format(proc.stdout) self.print_out(msg) @@ -339,7 +339,7 @@ class WebhookDeployApp(BaseHookApp): # Update the registered submodules to match what the superproject expects LOG.info(_("Updating GIT submodules in working directory {!r}.").format(os.getcwd())) cmd = ['git', 'submodule', 'update', '--init', '--recursive'] - proc = self.handler.call(cmd, sudo=self.do_sudo, quiet=True) + proc = self.handler.call(cmd, sudo=self.do_sudo, quiet=False) if proc.stdout: msg = _("Output:") + "\n{}".format(proc.stdout) self.print_out(msg) diff --git a/lib/webhooks/r10k.py b/lib/webhooks/r10k.py index 95f5a01..19c666f 100644 --- a/lib/webhooks/r10k.py +++ b/lib/webhooks/r10k.py @@ -302,7 +302,7 @@ class R10kHookApp(BaseHookApp): if self.verbose > 3: cmd.append('--debug') - proc = self.handler.call(cmd, sudo=self.do_sudo, quiet=True) + proc = self.handler.call(cmd, sudo=self.do_sudo, quiet=False) if proc.stdout: msg = _("Output:") + '\n' + proc.stdout @@ -345,7 +345,7 @@ class R10kHookApp(BaseHookApp): self.ref, '--puppetfile', '--verbose', r10k_loglevel ] - proc = self.handler.call(cmd, sudo=self.do_sudo, quiet=True) + proc = self.handler.call(cmd, sudo=self.do_sudo, quiet=False) if proc.stdout: msg = _("Output:") + '\n' + proc.stdout -- 2.39.5