naemon / naemon-core

Networks, Applications and Event Monitor
http://www.naemon.io/
GNU General Public License v2.0
153 stars 63 forks source link

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

Closed sni closed 1 month ago

sni commented 1 month ago

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 commented 1 month ago

obsolete by #479