summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/gluster-host.cfg.template4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/gluster-host.cfg.template b/config/gluster-host.cfg.template
index bd1b2af..0b5173d 100644
--- a/config/gluster-host.cfg.template
+++ b/config/gluster-host.cfg.template
@@ -17,10 +17,10 @@ use {{host['use']}}
host_name {{host['host_name']}}
alias {{host['alias']}}
address {{host['address']}}
-{% if host['check_command'] != "" -%}
+{% if host['check_command'] is defined -%}
check_command {{host['check_command']}}
{% endif -%}
-{% if host['hostgroups'] != "" -%}
+{% if host['hostgroups'] is defined -%}
hostgroups {{host['hostgroups']}}
{% endif -%}
}