Merge "Remove unused variables from images api"
This commit is contained in:
commit
25e8d7479f
|
@ -13,7 +13,6 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import six
|
||||
import webob.exc
|
||||
|
||||
from nova.api.openstack import common
|
||||
|
@ -116,10 +115,7 @@ class Controller(wsgi.Controller):
|
|||
"""
|
||||
context = req.environ['nova.context']
|
||||
filters = self._get_filters(req)
|
||||
params = req.GET.copy()
|
||||
page_params = common.get_pagination_params(req)
|
||||
for key, val in six.iteritems(page_params):
|
||||
params[key] = val
|
||||
|
||||
try:
|
||||
images = self._image_api.get_all(context, filters=filters,
|
||||
|
@ -136,10 +132,7 @@ class Controller(wsgi.Controller):
|
|||
"""
|
||||
context = req.environ['nova.context']
|
||||
filters = self._get_filters(req)
|
||||
params = req.GET.copy()
|
||||
page_params = common.get_pagination_params(req)
|
||||
for key, val in six.iteritems(page_params):
|
||||
params[key] = val
|
||||
try:
|
||||
images = self._image_api.get_all(context, filters=filters,
|
||||
**page_params)
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import six
|
||||
import webob.exc
|
||||
|
||||
from nova.api.openstack import common
|
||||
|
@ -122,10 +121,7 @@ class ImagesController(wsgi.Controller):
|
|||
"""
|
||||
context = req.environ['nova.context']
|
||||
filters = self._get_filters(req)
|
||||
params = req.GET.copy()
|
||||
page_params = common.get_pagination_params(req)
|
||||
for key, val in six.iteritems(page_params):
|
||||
params[key] = val
|
||||
|
||||
try:
|
||||
images = self._image_api.get_all(context, filters=filters,
|
||||
|
@ -143,10 +139,7 @@ class ImagesController(wsgi.Controller):
|
|||
"""
|
||||
context = req.environ['nova.context']
|
||||
filters = self._get_filters(req)
|
||||
params = req.GET.copy()
|
||||
page_params = common.get_pagination_params(req)
|
||||
for key, val in six.iteritems(page_params):
|
||||
params[key] = val
|
||||
try:
|
||||
images = self._image_api.get_all(context, filters=filters,
|
||||
**page_params)
|
||||
|
|
Loading…
Reference in New Issue