diff options
| author | Justin Santa Barbara <justinsb@justinsb-desktop> | 2010-08-08 13:02:12 -0700 |
|---|---|---|
| committer | Justin Santa Barbara <justinsb@justinsb-desktop> | 2010-08-08 13:02:12 -0700 |
| commit | 00b5a4a1cb3b35aa07972ef93f12e86808111812 (patch) | |
| tree | 3845060ba617c3d6d90d51b1bc2a7134c0a9edc0 /nova/adminclient.py | |
| parent | 0ee7d2f74a959bcf1cf611f63842302866774475 (diff) | |
| parent | c0c2f5851ab70ee91f1a271a6c32a84315c1e831 (diff) | |
| download | nova-00b5a4a1cb3b35aa07972ef93f12e86808111812.tar.gz nova-00b5a4a1cb3b35aa07972ef93f12e86808111812.tar.xz nova-00b5a4a1cb3b35aa07972ef93f12e86808111812.zip | |
Merged 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)]) |
