Skip to content

Commit 67d6b4d

Browse files
committed
puppet_runonce: redirect stderr to stdout
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 6bac026 commit 67d6b4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/puppet_runonce.sh

+1-1
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)