summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-02-05 16:05:14 -0600
committerSol Jerome <sol.jerome@gmail.com>2011-02-05 16:05:14 -0600
commita839ccf5223d7839526448a02bfb558fe7f70500 (patch)
treeeb797c6df32c2e9ec2a61aabcacd6ba8e5e57cfb
parent85fa7231f71a39b8cb2676faacb5a777476db03b (diff)
downloadbcfg2-a839ccf5223d7839526448a02bfb558fe7f70500.tar.gz
bcfg2-a839ccf5223d7839526448a02bfb558fe7f70500.tar.bz2
bcfg2-a839ccf5223d7839526448a02bfb558fe7f70500.zip
Probes: Patch to sort nested items from faceted.wordpress.com (Resolves #987)
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
-rw-r--r--src/lib/Server/Plugins/Probes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/Probes.py b/src/lib/Server/Plugins/Probes.py
index 7ffc65bac..57dd4f698 100644
--- a/src/lib/Server/Plugins/Probes.py
+++ b/src/lib/Server/Plugins/Probes.py
@@ -75,10 +75,10 @@ class Probes(Bcfg2.Server.Plugin.Plugin,
top = lxml.etree.Element("Probed")
for client, probed in sorted(self.probedata.items()):
cx = lxml.etree.SubElement(top, 'Client', name=client)
- for probe in probed:
+ for probe in sorted(probed):
lxml.etree.SubElement(cx, 'Probe', name=probe,
value=self.probedata[client][probe])
- for group in self.cgroups[client]:
+ for group in sorted(self.cgroups[client]):
lxml.etree.SubElement(cx, "Group", name=group)
data = lxml.etree.tostring(top, encoding='UTF-8', xml_declaration=True,
pretty_print='true')