diff options
| author | Chris Behrens <cbehrens@codestud.com> | 2011-09-28 23:52:57 +0000 |
|---|---|---|
| committer | Chris Behrens <cbehrens@codestud.com> | 2011-09-28 23:52:57 +0000 |
| commit | bb410b3f1bbdebdbdf540a22cd37fc9526897fe1 (patch) | |
| tree | a4d32e35ad93fcf46b18399d553fe7bc1055b3f1 /nova/api | |
| parent | ef22c0054ccb846dd7e81ba35f7e9c2b533d5ff7 (diff) | |
| download | nova-bb410b3f1bbdebdbdf540a22cd37fc9526897fe1.tar.gz nova-bb410b3f1bbdebdbdf540a22cd37fc9526897fe1.tar.xz nova-bb410b3f1bbdebdbdf540a22cd37fc9526897fe1.zip | |
Change 'recurse_zones' to 'local_zone_only'.
Fixes bug 861753
Zone recursion should be the default and now 'recurse_zones' as an
optional search argument no longer makes sense. 'local_zone_only=True' can
now be specified to override the new default of recursing zones.
Change-Id: I5c3c849e9077117b2023f637b82831fa14b656b1
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/servers.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py index de081343e..938ba8787 100644 --- a/nova/api/openstack/servers.py +++ b/nova/api/openstack/servers.py @@ -140,9 +140,9 @@ class Controller(object): remove_invalid_options(context, search_opts, self._get_server_search_options()) - # Convert recurse_zones into a boolean - search_opts['recurse_zones'] = utils.bool_from_str( - search_opts.get('recurse_zones', False)) + # Convert local_zone_only into a boolean + search_opts['local_zone_only'] = utils.bool_from_str( + search_opts.get('local_zone_only', False)) # If search by 'status', we need to convert it to 'vm_state' # to pass on to child zones. @@ -1041,7 +1041,7 @@ class ControllerV10(Controller): def _get_server_search_options(self): """Return server search options allowed by non-admin""" - return 'reservation_id', 'fixed_ip', 'name', 'recurse_zones' + return 'reservation_id', 'fixed_ip', 'name', 'local_zone_only' class ControllerV11(Controller): @@ -1272,7 +1272,7 @@ class ControllerV11(Controller): def _get_server_search_options(self): """Return server search options allowed by non-admin""" - return ('reservation_id', 'name', 'recurse_zones', + return ('reservation_id', 'name', 'local_zone_only', 'status', 'image', 'flavor', 'changes-since') |
