-
Notifications
You must be signed in to change notification settings - Fork 118
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
Cannot set various config to 0 #103
Comments
As a workaround, you can set them as a string instead: |
It's a common issue. I think it's nothing to fix in formula, |
@OrangeDog do you think on formula side all variables mut be forced to string type? |
How about adding this specific value to |
Or have the template check the actual value instead of letting it cast to boolean. |
Sorry but I don't understand what do you mean by
Template render line with the option only if option value not empty string, zabbix-formula/zabbix/files/default/etc/zabbix/zabbix_server.conf.jinja Lines 305 to 310 in b83c7a0
Python / Jinja interprets numeric zero |
{% if settings.get('startalerters', defaults.get('startalerters', False)) == False -%} |
For example,
startagents: 0
will not work, because the template will omit the section because it's falsy.The text was updated successfully, but these errors were encountered: