summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStéphane Graber <stgraber@ubuntu.com>2013-11-12 20:57:10 -0500
committerStéphane Graber <stgraber@ubuntu.com>2013-11-12 20:57:10 -0500
commitd5c70ba8b220ac7ec9a7d462ce1a896a660d8d26 (patch)
treeb0bf1ed63714efa86577457b1b852b04b46f9015
parent05929147dde2239ee0078359bd62b1ea5a884d86 (diff)
downloadbcfg2-d5c70ba8b220ac7ec9a7d462ce1a896a660d8d26.tar.gz
bcfg2-d5c70ba8b220ac7ec9a7d462ce1a896a660d8d26.tar.bz2
bcfg2-d5c70ba8b220ac7ec9a7d462ce1a896a660d8d26.zip
NagiosGen: Sort the hostgroup list
This prevents the hostgroup list from flipping at random.
-rw-r--r--src/lib/Bcfg2/Server/Plugins/NagiosGen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/NagiosGen.py b/src/lib/Bcfg2/Server/Plugins/NagiosGen.py
index 7cb465b8e..045e46350 100644
--- a/src/lib/Bcfg2/Server/Plugins/NagiosGen.py
+++ b/src/lib/Bcfg2/Server/Plugins/NagiosGen.py
@@ -53,7 +53,7 @@ class NagiosGen(Plugin, Generator):
if host_groups:
host_config.append(self.line_fmt % ("hostgroups",
- ",".join(host_groups)))
+ ",".join(sorted(host_groups))))
# read the config
xtra = dict()