From ecdb33ab57f8072f39826c28f936f0c04f9d82a4 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Sat, 3 Jan 2009 21:30:55 -0500 Subject: [PATCH] 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 --- code/getafsgroups.py | 1 + 1 file changed, 1 insertion(+) 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() -- 1.7.9.5