Skip to content

Commit 66567dc

Browse files
authored
puppet_runonce: redirect stderr to stdout (#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 27485f4 commit 66567dc

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)