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

config parser: bail out if boolean config value is outside 0/1 #478

Closed
wants to merge 1 commit into from

Conversation

sni
Copy link
Contributor

@sni sni commented Sep 13, 2024

currently naemon silently ignores invalid bool values. For ex.:

register_object yes

does not result in an error but the int value of "yes" is still 0, so the object won't be registered.

This change adds boolean validation and prints out an error in case the value is not either 0 or 1.

currently naemon silently ignores invalid bool values. For ex.:

    register_object yes

does not result in an error but the int value of "yes" is still 0, so the
object won't be registered.

This change adds boolean validation and prints out an error in case the
value is not either 0 or 1.
@sni
Copy link
Contributor Author

sni commented Sep 27, 2024

obsolete by #479

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.

1 participant