summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorSatyanarayana Patibandla <satya.patibandlai@tcs.com>2013-04-27 14:44:23 -0400
committerSatyanarayana Patibandla <satya.patibandla@tcs.com>2013-05-19 22:22:09 +0530
commit37abdd9968ad19fc29abde5783e6e07c9a4637cb (patch)
treeee51c603c902e37c1af8e678e86d19b4e85eb77f /nova/api
parent5c3113b066e61cbc5d8d4d464f8200d4cb5e8395 (diff)
Added attribute 'ip' to server search options.
Allows all tenants to use attribute 'ip' in server search options. For this fix, added attribute 'ip' to server search options. Modified the existing test case to verify 'ip' search for all tenants. Implements: blueprint add-attribute-ip-in-server-search-options Change-Id: Ic24ee67d729f77d56c4fe3e1d4110865550c2154
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/compute/servers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/compute/servers.py b/nova/api/openstack/compute/servers.py
index 2df16c886..166c8b10e 100644
--- a/nova/api/openstack/compute/servers.py
+++ b/nova/api/openstack/compute/servers.py
@@ -1392,7 +1392,7 @@ class Controller(wsgi.Controller):
def _get_server_search_options(self):
"""Return server search options allowed by non-admin."""
return ('reservation_id', 'name', 'status', 'image', 'flavor',
- 'changes-since', 'all_tenants')
+ 'ip', 'changes-since', 'all_tenants')
def create_resource(ext_mgr):