summaryrefslogtreecommitdiffstats
path: root/nova/adminclient.py
diff options
context:
space:
mode:
authorJustin Santa Barbara <justinsb@justinsb-desktop>2010-08-08 13:02:12 -0700
committerJustin Santa Barbara <justinsb@justinsb-desktop>2010-08-08 13:02:12 -0700
commit00b5a4a1cb3b35aa07972ef93f12e86808111812 (patch)
tree3845060ba617c3d6d90d51b1bc2a7134c0a9edc0 /nova/adminclient.py
parent0ee7d2f74a959bcf1cf611f63842302866774475 (diff)
parentc0c2f5851ab70ee91f1a271a6c32a84315c1e831 (diff)
downloadnova-00b5a4a1cb3b35aa07972ef93f12e86808111812.tar.gz
nova-00b5a4a1cb3b35aa07972ef93f12e86808111812.tar.xz
nova-00b5a4a1cb3b35aa07972ef93f12e86808111812.zip
Merged with trunk
Diffstat (limited to 'nova/adminclient.py')
-rw-r--r--nova/adminclient.py10
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)])