Skip to content

Commit

Permalink
Merge pull request #5599 from vpodzime/master-no_returncodes_error
Browse files Browse the repository at this point in the history
Log errors for commands promises with exit codes not matching any _returncodes
  • Loading branch information
vpodzime authored Aug 9, 2024
2 parents 0ea1803 + 41214f7 commit 9b59491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cf-agent/retcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ bool VerifyCommandRetcode(EvalContext *ctx, int retcode, const Attributes *a, co

if (!matched)
{
cfPS(ctx, info_or_verbose, PROMISE_RESULT_FAIL, pp, a,
cfPS(ctx, LOG_LEVEL_ERR, PROMISE_RESULT_FAIL, pp, a,
"Command related to promiser '%s' returned code '%d' not defined as promise kept, not kept or repaired; setting to failed",
pp->promiser, retcode);
*result = PromiseResultUpdate(*result, PROMISE_RESULT_FAIL);
Expand Down

0 comments on commit 9b59491

Please sign in to comment.