summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-06-18 19:02:38 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-06-18 19:02:38 +0000
commitbe355d267a1262bf6a2dbb1558b2655faf61fdfc (patch)
treee4bbc68954f80025caa3f919943fc30abc5ad5dd /src
parent66594e6c50b9cb489ebe5f3889b5611eb7c8a3c4 (diff)
downloadbcfg2-be355d267a1262bf6a2dbb1558b2655faf61fdfc.tar.gz
bcfg2-be355d267a1262bf6a2dbb1558b2655faf61fdfc.tar.bz2
bcfg2-be355d267a1262bf6a2dbb1558b2655faf61fdfc.zip
Exclude xml comments from dependency processing Deps plugin (Resolves Ticket #450)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3316 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Plugins/Deps.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Deps.py b/src/lib/Server/Plugins/Deps.py
index 79e484643..d63f0b204 100644
--- a/src/lib/Server/Plugins/Deps.py
+++ b/src/lib/Server/Plugins/Deps.py
@@ -53,7 +53,8 @@ class Deps(Bcfg2.Server.Plugin.PrioDir):
prereqs = []
for structure in structures:
for entry in structure.getchildren():
- if (entry.tag, entry.get('name')) not in entries:
+ if (entry.tag, entry.get('name')) not in entries \
+ and not isinstance(entry, lxml.etree._Comment):
entries.append((entry.tag, entry.get('name')))
entries.sort()
entries = tuple(entries)