[Trivial]Removed unused helper _extract_query_params
Helper _extract_query_params is no longer used after dbe6d502b7158673617a42f8638eaa1ae3c0e507, this is to remove it. Change-Id: I2ba551760954c6c1ff1a01a9aa4557bbb0a54e6a
This commit is contained in:
parent
90401df566
commit
8afe0aea2c
@ -656,22 +656,6 @@ class GlanceImageServiceV2(object):
|
||||
return True
|
||||
|
||||
|
||||
def _extract_query_params(params):
|
||||
_params = {}
|
||||
accepted_params = ('filters', 'marker', 'limit',
|
||||
'page_size', 'sort_key', 'sort_dir')
|
||||
for param in accepted_params:
|
||||
if params.get(param):
|
||||
_params[param] = params.get(param)
|
||||
|
||||
# ensure filters is a dict
|
||||
_params.setdefault('filters', {})
|
||||
# NOTE(vish): don't filter out private images
|
||||
_params['filters'].setdefault('is_public', 'none')
|
||||
|
||||
return _params
|
||||
|
||||
|
||||
def _extract_query_params_v2(params):
|
||||
_params = {}
|
||||
accepted_params = ('filters', 'marker', 'limit',
|
||||
|
Loading…
x
Reference in New Issue
Block a user