Fixes bug lp:616312 by reversing the order of args in nova-manage when it calls AuthManager.get_credentials.

This commit is contained in:
Vishvananda Ishaya
2010-08-14 22:03:38 +00:00
committed by Tarmac

View File

@@ -206,7 +206,7 @@ class ProjectCommands(object):
def zipfile(self, project_id, user_id, filename='nova.zip'):
"""Exports credentials for project to a zip file
arguments: project_id user_id [filename='nova.zip]"""
zip_file = self.manager.get_credentials(project_id, user_id)
zip_file = self.manager.get_credentials(user_id, project_id)
with open(filename, 'w') as f:
f.write(zip_file)