diff options
author | Stéphane Graber <stgraber@ubuntu.com> | 2013-11-12 20:57:10 -0500 |
---|---|---|
committer | Stéphane Graber <stgraber@ubuntu.com> | 2013-11-12 20:57:10 -0500 |
commit | d5c70ba8b220ac7ec9a7d462ce1a896a660d8d26 (patch) | |
tree | b0bf1ed63714efa86577457b1b852b04b46f9015 /src/lib | |
parent | 05929147dde2239ee0078359bd62b1ea5a884d86 (diff) | |
download | bcfg2-d5c70ba8b220ac7ec9a7d462ce1a896a660d8d26.tar.gz bcfg2-d5c70ba8b220ac7ec9a7d462ce1a896a660d8d26.tar.bz2 bcfg2-d5c70ba8b220ac7ec9a7d462ce1a896a660d8d26.zip |
NagiosGen: Sort the hostgroup list
This prevents the hostgroup list from flipping at random.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/NagiosGen.py | 2 |
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() |