diff options
| author | Devin Carlen <devin.carlen@gmail.com> | 2010-07-29 17:18:39 -0700 |
|---|---|---|
| committer | Devin Carlen <devin.carlen@gmail.com> | 2010-07-29 17:18:39 -0700 |
| commit | 099feefbbd1f9b0db70f1a4bcc90da57f902af9d (patch) | |
| tree | fddcb44adeff71eb4458f008f6f4e31c5b702385 | |
| parent | 73a47dfecf4b1ba66a45421bbd925f3e0db054c5 (diff) | |
| download | nova-099feefbbd1f9b0db70f1a4bcc90da57f902af9d.tar.gz nova-099feefbbd1f9b0db70f1a4bcc90da57f902af9d.tar.xz nova-099feefbbd1f9b0db70f1a4bcc90da57f902af9d.zip | |
Added project param to admin client zip download
| -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)]) |
