Module: check_mk
Branch: master
Commit: 454f04daf5298245c2e6004753d7131998ea11fe
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=454f04daf52982…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Mar 21 09:54:01 2017 +0100
Fixed using a conditional statement with a constant value (recently
introduced)
Change-Id: I7b39d0c73cb6a81d9c8c72da82f942495e73bf29
---
modules/nagios.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/nagios.py b/modules/nagios.py
index f3cc109..f061d2f 100644
--- a/modules/nagios.py
+++ b/modules/nagios.py
@@ -184,7 +184,7 @@ def create_nagios_hostdefs(outfile, hostname, attrs):
if parents_list:
outfile.write(" parents\t\t\t%s\n" %
(",".join(parents_list)))
- elif is_cluster:
+ elif is_clust:
# Special handling of clusters
alias = "cluster of %s" % ", ".join(nodes)
outfile.write(" parents\t\t\t%s\n" % ",".join(nodes))