* further integration of invirt.config
[invirt/packages/invirt-web.git] / code / cache_acls.py
index 130f359..2b3fd6c 100644 (file)
@@ -1,5 +1,6 @@
 #!/usr/bin/python
 from invirt.database import *
+from invirt.config import structs as config
 import sys
 import getafsgroups
 import subprocess
@@ -29,7 +30,7 @@ def expandName(name):
             return [name]
         return []
     try:
-        return getafsgroups.getAfsGroupMembers(name, 'athena.mit.edu')
+        return getafsgroups.getAfsGroupMembers(name, config.authz[0].cell)
     except getafsgroups.AfsProcessError:
         return []