Reviewed: https://review.openstack.org/200487 Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=184f5a6380567e902b06e6013bdb2a757ff8c9b3 Submitter: Jenkins Branch: stable/juno
commit 184f5a6380567e902b06e6013bdb2a757ff8c9b3 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 (cherry picked from commit 5c4e827568be429ac5227a950c9f24c578ca8fd8)
Reviewed: https:/ /review. openstack. org/200487 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=184f5a63805 67e902b06e6013b db2a757ff8c9b3
Committed: https:/
Submitter: Jenkins
Branch: stable/juno
commit 184f5a6380567e9 02b06e6013bdb2a 757ff8c9b3
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 ac5227a950c9f24 c578ca8fd8)
(cherry picked from commit 5c4e827568be429