summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2010-04-14 19:17:50 +0000
committerSol Jerome <solj@ices.utexas.edu>2010-04-14 14:17:56 -0500
commit44805971b3911bad4809f389eb00e5ed3e56946f (patch)
tree0a5cf62370f2ac6f920b3321adb1eaea9f8800ac
parent78d1f7398629d2c2a20fdf402112dca4554edb6b (diff)
downloadbcfg2-44805971b3911bad4809f389eb00e5ed3e56946f.tar.gz
bcfg2-44805971b3911bad4809f389eb00e5ed3e56946f.tar.bz2
bcfg2-44805971b3911bad4809f389eb00e5ed3e56946f.zip
Frame: Modify list comprehension so that it doesn't require lxml
Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5825 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Client/Frame.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py
index 95544f8b9..457baf3ac 100644
--- a/src/lib/Client/Frame.py
+++ b/src/lib/Client/Frame.py
@@ -108,8 +108,9 @@ class Frame:
except:
self.logger.error("Unexpected tool failure",
exc_info=1)
- for cfile in [cfl for cfl in config.findall(".//Path[@type='file']") \
- if cfl.get('name') in self.__important__]:
+ for cfile in [cfl for cfl in config.findall(".//Path") \
+ if cfl.get('name') in self.__important__ and \
+ cfl.get('type') == 'file']:
tl = [t for t in self.tools if t.handlesEntry(cfile) \
and t.canVerify(cfile)]
if tl: