diff options
| author | Ewan Mellor <ewan.mellor@citrix.com> | 2010-08-03 00:54:02 +0100 |
|---|---|---|
| committer | Ewan Mellor <ewan.mellor@citrix.com> | 2010-08-03 00:54:02 +0100 |
| commit | c6fbcd864a2728996f23cac547c97caa04e0c449 (patch) | |
| tree | 6aa006586d6764900a244d0bb410c0c4e1d40ac7 /nova/adminclient.py | |
| parent | 4c8ae5e0a5b30039075a87ba39aec6da64fdd138 (diff) | |
| parent | 75c8ccaadedd59b8b7671c3802b8bcfd6368a998 (diff) | |
Merge with trunk.
Diffstat (limited to 'nova/adminclient.py')
| -rw-r--r-- | nova/adminclient.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nova/adminclient.py b/nova/adminclient.py index fceeac274..25d5e71cb 100644 --- a/nova/adminclient.py +++ b/nova/adminclient.py @@ -292,9 +292,13 @@ class NovaAdminClient(object): 'Operation': operation} return self.apiconn.get_status('ModifyProjectMember', params) - def get_zip(self, username): - """ returns the content of a zip file containing novarc and access credentials. """ - return self.apiconn.get_object('GenerateX509ForUser', {'Name': username}, UserInfo).file + def get_zip(self, user, project): + """ + Returns the content of a zip file containing novarc and access credentials. + """ + params = {'Name': user, 'Project': project} + zip = self.apiconn.get_object('GenerateX509ForUser', params, UserInfo) + return zip.file def get_hosts(self): return self.apiconn.get_list('DescribeHosts', {}, [('item', HostInfo)]) |
