Comment 2 for bug 1392316

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

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