Get tokens for a cell before getting a list membership from that cell.
authorEvan Broder <broder@mit.edu>
Sun, 4 Jan 2009 02:30:55 +0000 (21:30 -0500)
committerEvan Broder <broder@mit.edu>
Sun, 4 Jan 2009 02:30:55 +0000 (21:30 -0500)
I realize this is possibly the most unelegant way to do this, but I
could never figure out how to get tokens for multiple cells using
kstart.

svn path=/trunk/packages/invirt-web/; revision=1959

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()