Skip to content

Commit

Permalink
Adding support to filter instances by tenant from the admin api
Browse files Browse the repository at this point in the history
Change-Id: I37a2c5ad7bbe3e005e96416ea974051a82879adc
  • Loading branch information
Paul Voccio committed Nov 16, 2012
1 parent aa56221 commit aa8d44c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions novaclient/v1_1/shell.py
Expand Up @@ -670,6 +670,12 @@ def do_image_delete(cs, args):
type=int,
const=1,
help=argparse.SUPPRESS)
@utils.arg('--tenant',
#nova db searches by project_id
dest='tenant',
metavar='<tenant>',
nargs='?',
help='Display information from single tenant (Admin only).')
def do_list(cs, args):
"""List active servers."""
search_opts = {
Expand All @@ -681,6 +687,7 @@ def do_list(cs, args):
'image': args.image,
'flavor': args.flavor,
'status': args.status,
'project_id': args.tenant,
'host': args.host,
'instance_name': args.instance_name}

Expand Down

0 comments on commit aa8d44c

Please sign in to comment.