~ken-pepple/nova/add-epub-docs

« back to all changes in this revision

Viewing changes to bin/nova-manage

  • Committer: Tarmac
  • Author(s): Todd Willey
  • Date: 2011-04-30 02:46:29 UTC
  • mfrom: (1031.2.1 projectscope)
  • Revision ID: tarmac-20110430024629-rc93dzxqvwptexqs
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.

Show diffs side-by-side

added added

removed removed

Lines of Context:
386
386
        with open(filename, 'w') as f:
387
387
            f.write(rc)
388
388
 
389
 
    def list(self):
 
389
    def list(self, username=None):
390
390
        """Lists all projects
391
 
        arguments: <none>"""
392
 
        for project in self.manager.get_projects():
 
391
        arguments: [username]"""
 
392
        for project in self.manager.get_projects(username):
393
393
            print project.name
394
394
 
395
395
    def quota(self, project_id, key=None, value=None):