diff --git a/bin/nova-manage b/bin/nova-manage index fa6a49f3..d7bae737 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -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)