Skip to content

Commit

Permalink
puppet_runonce: redirect stderr to stdout (#523)
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 authored Dec 5, 2024
1 parent 27485f4 commit 66567dc
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 66567dc

Please sign in to comment.