Comment 6 for bug 1392316

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

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)