From: Evan Broder Date: Sun, 4 Jan 2009 02:30:55 +0000 (-0500) Subject: Get tokens for a cell before getting a list membership from that cell. X-Git-Tag: 0.0.17~5 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/ecdb33ab57f8072f39826c28f936f0c04f9d82a4 Get tokens for a cell before getting a list membership from that cell. 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 --- diff --git a/code/getafsgroups.py b/code/getafsgroups.py index 4e4b383..d8ba297 100644 --- a/code/getafsgroups.py +++ b/code/getafsgroups.py @@ -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()