diff options
author | Roman Podolyaka <rpodolyaka@mirantis.com> | 2013-03-27 16:48:02 +0200 |
---|---|---|
committer | Roman Podolyaka <rpodolyaka@mirantis.com> | 2013-03-27 16:48:02 +0200 |
commit | 94173a3f989c87d0dce1ecdc0ad733b4621fea44 (patch) | |
tree | 42db9bba3975544824f70b7ac7ff75e8430a2b2f | |
parent | 655765a5eac161be8209e62950ecde7b4da84d1a (diff) | |
download | python-novaclient-94173a3f989c87d0dce1ecdc0ad733b4621fea44.tar.gz |
Use correct filter name for listing of instances
nova list --tenant tenant_id leads to the following query to Nova API:
GET /v2/{admin_tenant_id}/servers/detail?project_id={tenant_id}
While Nova actually expects:
GET /v2/{admin_tenant_id}/servers/detail?tenant_id={tenant_id}
Fixes bug 1134382.
Change-Id: I222208bcc9aaf547cd0b1c52dc8856123a823b8e
-rw-r--r-- | novaclient/v1_1/shell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/novaclient/v1_1/shell.py b/novaclient/v1_1/shell.py index a0d802c6..d4f24501 100644 --- a/novaclient/v1_1/shell.py +++ b/novaclient/v1_1/shell.py @@ -916,7 +916,7 @@ def do_list(cs, args): 'image': imageid, 'flavor': flavorid, 'status': args.status, - 'project_id': args.tenant, + 'tenant_id': args.tenant, 'host': args.host, 'instance_name': args.instance_name} |