Skip to content

Commit

Permalink
Correct _extract_query_params in image.glance
Browse files Browse the repository at this point in the history
Updates _params rather than params to ensure filters.

Fixes bug 1070138.

Change-Id: I4e71d19f120ea91d8dfca32785ccb0aa7b1c770b
  • Loading branch information
motokentsai committed Oct 26, 2012
1 parent 549b26a commit 1aec1f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nova/image/glance.py
Expand Up @@ -181,9 +181,9 @@ def _extract_query_params(self, params):
_params[param] = params.get(param)

# ensure filters is a dict
params.setdefault('filters', {})
_params.setdefault('filters', {})
# NOTE(vish): don't filter out private images
params['filters'].setdefault('is_public', 'none')
_params['filters'].setdefault('is_public', 'none')

return _params

Expand Down

0 comments on commit 1aec1f5

Please sign in to comment.