Reviewed: https://review.openstack.org/134277 Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=5c4e827568be429ac5227a950c9f24c578ca8fd8 Submitter: Jenkins Branch: master
commit 5c4e827568be429ac5227a950c9f24c578ca8fd8 Author: Pawel Palucki <email address hidden> Date: Mon Nov 10 20:56:51 2014 +0100
Fix TemplateSyntaxError at hypervisors view
If somehow nova API service-list isn't available, listing hypervisors at /admin/hypervisors/ ends with TemplateSyntaxError.
Expected result is that the page should load but user will see empty list and error message.
This fix is based on idea found in other views:
openstack_dashboard/dashboards/admin/... images/views.py aggregate/views.py falvors/views.pu
that on any exception while getting data (get_data), we just return empty list and handle exception to display error message.
Closes-Bug: #1392316
Change-Id: Ia665111185abecab6a96e6c72a6088cf2fa2e02b
Reviewed: https:/ /review. openstack. org/134277 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=5c4e827568b e429ac5227a950c 9f24c578ca8fd8
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5c4e827568be429 ac5227a950c9f24 c578ca8fd8
Author: Pawel Palucki <email address hidden>
Date: Mon Nov 10 20:56:51 2014 +0100
Fix TemplateSyntaxError at hypervisors view
If somehow nova API service-list isn't available, listing rror.
hypervisors at /admin/hypervisors/ ends with TemplateSyntaxE
Expected result is that the page should load but user will
see empty list and error message.
This fix is based on idea found in other views:
openstack_ dashboard/ dashboards/ admin/. .. views.py views.pu
images/views.py
aggregate/
falvors/
that on any exception while getting data (get_data), we just
return empty list and handle exception to display error message.
Closes-Bug: #1392316
Change-Id: Ia665111185abec ab6a96e6c72a608 8cf2fa2e02b