X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/e3ef118dac44137bda1374d8e124b095d7f6ad06..846195518ab335ada11115dfee10d0de5219cddc:/code/getafsgroups.py diff --git a/code/getafsgroups.py b/code/getafsgroups.py index 7067e53..21de4d7 100755 --- a/code/getafsgroups.py +++ b/code/getafsgroups.py @@ -30,8 +30,8 @@ class AfsProcessError(Exception): def getAfsGroupMembers(group, cell): encrypt = True - for c in config.authz: - if c.type == 'afs' and c.cell == cell and hasattr(c, 'auth'): + for c in config.authz.cells: + if c.cell == cell and hasattr(c, 'auth'): encrypt = c.auth subprocess.check_call(['aklog', cell], stdout=subprocess.PIPE, stderr=subprocess.PIPE) p = subprocess.Popen(["pts", "membership", "-encrypt" if encrypt else '-noauth', group, '-c', cell],