Fixes reversed arguments in nova-manage project environment.

This commit is contained in:
Vishvananda Ishaya
2010-09-29 03:23:09 +00:00
committed by Tarmac

View File

@@ -291,7 +291,7 @@ class ProjectCommands(object):
def environment(self, project_id, user_id, filename='novarc'):
"""Exports environment variables to an sourcable file
arguments: project_id user_id [filename='novarc]"""
rc = self.manager.get_environment_rc(project_id, user_id)
rc = self.manager.get_environment_rc(user_id, project_id)
with open(filename, 'w') as f:
f.write(rc)