Comment 3 for bug 1609290

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

Reviewed: https://review.openstack.org/352387
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=9a974bc169afb66b76761c1f1b95004ca039724d
Submitter: Jenkins
Branch: master

commit 9a974bc169afb66b76761c1f1b95004ca039724d
Author: Alexander Bochkarev <email address hidden>
Date: Mon Aug 8 15:05:57 2016 +0300

    Invalid api response in case all graphs deleted

    In the current implementation of the method 'to_list'
    all object instances are serialized regardless what
    the variable 'iterable' is: None or [].

    This patch allows to correctly handle such situations.
    In case if the variable 'iterable' is None all object
    instances are serialized, otherwise only selected from db.

    Change-Id: I7b9913f364cfab085a8c94aec1435286a8e877f3
    Closes-Bug: #1609290