From: Thierry Parmentelat Date: Mon, 12 Sep 2011 12:51:25 +0000 (+0200) Subject: partially revert previous change (*) bugfix as os.path.isfile was called without... X-Git-Tag: sfa-1.0-36~14 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=741fa4b5afd30b6b13e6cde5432e452d0bcb24d8;p=sfa.git partially revert previous change (*) bugfix as os.path.isfile was called without the path, and (*) re-enable the *.gid filtering, --- diff --git a/sfa/trust/trustedroot.py b/sfa/trust/trustedroot.py index 364704ed..65b97fa6 100644 --- a/sfa/trust/trustedroot.py +++ b/sfa/trust/trustedroot.py @@ -20,7 +20,8 @@ class TrustedRootList: def get_file_list(self): file_list = [] - for cert_file in os.listdir(self.basedir): + pattern=os.path.join(self.basedir,"*.gid") + for cert_file in glob.glob(pattern): if os.path.isfile(cert_file): - file_list.append(os.path.join(self.basedir, cert_file)) + file_list.append(cert_file) return file_list