From 0afc684b6680df25b4bd32ab6c94e208df3d986f Mon Sep 17 00:00:00 2001 From: Greg Price Date: Thu, 22 Jan 2009 02:31:33 -0500 Subject: [PATCH 1/1] null acl for missing lockers, rather than error svn path=/trunk/packages/invirt-web/; revision=1986 --- code/cache_acls.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 1.7.9.5