Fix working "Register Image" button

This patch based on: https://review.openstack.org/#/c/108812/

Change-Id: Ie4c7036aa5d52185937ae4c5585079c8dd13b320
Closes-bug: #1347829
This commit is contained in:
Sergey Reshetnyak 2014-07-24 12:51:35 +04:00
parent 1bc3465a8b
commit c3a451ef37

View File

@ -88,7 +88,8 @@ class RegisterImageForm(ImageForm):
def _get_images(self, request, filter): def _get_images(self, request, filter):
try: try:
images, _more = glance.image_list_detailed(request, filters=filter) images, _more, _prev = glance.image_list_detailed(
request, filters=filter)
except Exception: except Exception:
images = [] images = []
exceptions.handle(request, exceptions.handle(request,