Skip to content

Commit

Permalink
puppet_runonce: redirect stderr to stdout
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bastelfreak committed Dec 4, 2024
1 parent bbc1487 commit ac7e3b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/puppet_runonce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ echo
--detailed-exitcodes \
--color false \
$ENV_FLAG \
$NOOP_FLAG
$NOOP_FLAG 2>&1

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

0 comments on commit ac7e3b9

Please sign in to comment.