From: Greg Price Date: Thu, 22 Jan 2009 07:31:33 +0000 (-0500) Subject: null acl for missing lockers, rather than error X-Git-Tag: 0.0.17~1 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/0afc684b6680df25b4bd32ab6c94e208df3d986f?hp=b63f52dca1ed8503795e11b14af5e5cae54f74a2 null acl for missing lockers, rather than error svn path=/trunk/packages/invirt-web/; revision=1986 --- diff --git a/code/cache_acls.py b/code/cache_acls.py index 8cd6977..fe69815 100644 --- a/code/cache_acls.py +++ b/code/cache_acls.py @@ -10,7 +10,10 @@ def expandLocker(name): groups = getafsgroups.getLockerAcl(name) except getafsgroups.AfsProcessError, e: if e.message.startswith("fs: You don't have the required access rights on"): - groups = [] + return [] + elif e.message.endswith("doesn't exist\n"): + # presumably deactivated + return [] else: raise cell = getafsgroups.getCell(name)