Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong Result code when deleteing jobs and no job was found #168

Closed
zwotzie opened this issue Apr 26, 2018 · 0 comments
Closed

wrong Result code when deleteing jobs and no job was found #168

zwotzie opened this issue Apr 26, 2018 · 0 comments
Labels

Comments

@zwotzie
Copy link

zwotzie commented Apr 26, 2018

If i run rd to delete executions in rundeck - as a rundeck job:

rd executions deletebulk -y --older 2w -m 0 -p

And rd found nothing to delete:

No executions found to delete
# Page [1/0] results 1 - 0 (of 0 by 10000).

The Result of rd is 2 and not 0:

Result: 2
Failed: NonZeroResultCode: Result code was 2

But finding nothing is not an error and the frontend then unfortunately shows an unsuccessful execution.

@gschueler gschueler added the bug label Apr 27, 2018
gschueler added a commit that referenced this issue Apr 27, 2018
Fix #168 add --require to executions deletebulk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants