Get tokens for a cell before getting a list membership from that cell.
[invirt/packages/invirt-web.git] / code / getafsgroups.py
index 4e4b383..d8ba297 100644 (file)
@@ -28,6 +28,7 @@ class AfsProcessError(Exception):
     pass
 
 def getAfsGroupMembers(group, cell):
+    subprocess.check_call(['aklog', cell], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     p = subprocess.Popen(["pts", "membership", "-encrypt", group, '-c', cell],
                          stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     err = p.stderr.read()