From 44805971b3911bad4809f389eb00e5ed3e56946f Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Wed, 14 Apr 2010 19:17:50 +0000 Subject: Frame: Modify list comprehension so that it doesn't require lxml Signed-off-by: Sol Jerome git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5825 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Client/Frame.py | 5 +++-- 1 file 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: -- cgit v1.2.3-1-g7c22