+xvm-authz-locker (0.0.4) unstable; urgency=low
+
+ * Catch AFS exceptions
+
+ -- Greg Brockman <gdb@mit.edu> Mon, 23 Aug 2010 20:46:09 -0400
+
xvm-authz-locker (0.0.3.1) unstable; urgency=low
* Dummy version bump
- -- Greg Brockman <gdb@inferno> Sun, 08 Aug 2010 19:36:31 -0400
+ -- Greg Brockman <gdb@mit.edu> Sun, 08 Aug 2010 19:36:31 -0400
xvm-authz-locker (0.0.3) unstable; urgency=low
from afs import acl
from afs import fs
from afs import pts
+from afs import _util
from invirt import common
from invirt.config import structs as config
allowed.difference_update(_expandGroup(ent, cell=cell, auth=auth))
return allowed
- except OSError, e:
+ except (_util.AFSException, OSError), e:
if e.errno in (errno.ENOENT, errno.EACCES):
return []
else:
return set([ent.name])
else:
return set([x.name for x in ent.members])
+ except _util.AFSException, e:
+ if e.errno in (267268, # User or group doesn't exist
+ 267269 # Permission denied
+ ):
+ return set()
+ else:
+ raise
except OSError, e:
if e.errno in (errno.ENOENT, errno.EACCESS):
return set()