Expose AuthManager.list_projects user filter to nova-manage.

./bin/nova-manage project list admin

will now only show projects which the user 'admin' is associated with.
This commit is contained in:
Todd Willey
2011-04-30 02:46:29 +00:00
committed by Tarmac

View File

@@ -386,10 +386,10 @@ class ProjectCommands(object):
with open(filename, 'w') as f:
f.write(rc)
def list(self):
def list(self, username=None):
"""Lists all projects
arguments: <none>"""
for project in self.manager.get_projects():
arguments: [username]"""
for project in self.manager.get_projects(username):
print project.name
def quota(self, project_id, key=None, value=None):