summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2014-05-22 09:09:43 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2014-05-22 09:09:48 -0400
commitff5164c949215a8d961bb20971c70c62781309a0 (patch)
tree14c7dedcce3282092979d95f4b1fb446dacc0143
parent418c799f74c66dc2ab3228a7044a57292f2344b4 (diff)
downloadbcfg2-ff5164c949215a8d961bb20971c70c62781309a0.tar.gz
bcfg2-ff5164c949215a8d961bb20971c70c62781309a0.tar.bz2
bcfg2-ff5164c949215a8d961bb20971c70c62781309a0.zip
GroupLogic: parse generated template properly to allow xinclude
-rw-r--r--src/lib/Bcfg2/Server/Plugins/GroupLogic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/GroupLogic.py b/src/lib/Bcfg2/Server/Plugins/GroupLogic.py
index d74c16e8b..24547949b 100644
--- a/src/lib/Bcfg2/Server/Plugins/GroupLogic.py
+++ b/src/lib/Bcfg2/Server/Plugins/GroupLogic.py
@@ -66,7 +66,7 @@ class GroupLogic(Bcfg2.Server.Plugin.Plugin,
return []
self._local.building.add(metadata.hostname)
rv = []
- for el in self.config.get_xml_value(metadata).findall("Group"):
+ for el in self.config.get_xml_value(metadata).xpath("//Group"):
if el.get("category"):
rv.append(MetadataGroup(el.get("name"),
category=el.get("category")))