Verified Commit 246c1ff0 authored by Adrian Schollmeyer's avatar Adrian Schollmeyer
Browse files

template/generic-host: Only set vars.nrpe = true if it's actually true

parent c9b33db6
......@@ -32,7 +32,7 @@ object Host "{{ vars.name }}" {
{%- for disk in vars.smart_sectors %}
vars.smart_sectors["{{ disk }}"] = {}{% endfor %}
{% if vars.nrpe is defined %}vars.nrpe = true{% endif %}
{% if vars.nrpe is defined and vars.nrpe %}vars.nrpe = true{% endif %}
{% for check in vars.nrpe_checks %}
vars.nrpe_check["check_{{ check }}"] = {}{% endfor %}
{% for check in vars.nrpe_disks %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment