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

Return exit code 2 if member filter doesn't match any node #116

Merged
merged 1 commit into from
May 4, 2014
Merged

Return exit code 2 if member filter doesn't match any node #116

merged 1 commit into from
May 4, 2014

Conversation

tiwilliam
Copy link
Contributor

Reported in #114

This will make consul members --role=not_found return exit code 2 instead of 0. It will also remove the linefeed previously printed on no match.

I chose exit code 2 to make it easier to separate from other errors returning 1.

@armon
Copy link
Member

armon commented May 4, 2014

LGTM! Thanks!

armon added a commit that referenced this pull request May 4, 2014
command/members: Return exit code 2 if member filter doesn't match any node
@armon armon merged commit ab9d42a into hashicorp:master May 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants