Skip to content

Commit 12cb051

Browse files
bastelfreakvchepkov
authored andcommitted
puppet_runonce: redirect stderr to stdout (puppetlabs#523)
In case the Puppet Agent fails, it prints an error to stderr. Previously when running the task, and the agent failed, it would output only normal stdout, which contained only successful changes, and actual errors were hidden.
1 parent 430fa4f commit 12cb051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/puppet_runonce.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ echo
3939
--detailed-exitcodes \
4040
--color false \
4141
$ENV_FLAG \
42-
$NOOP_FLAG
42+
$NOOP_FLAG 2>&1
4343

4444
# Only exit non-zero if an error occurred. Changes (detailed exit code 2) are
4545
# not errors.

0 commit comments

Comments
 (0)