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:
@@ -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):
|
||||
|
Reference in New Issue
Block a user