Comment 2 for bug 1215295

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

Reviewed: https://review.openstack.org/45819
Committed: http://github.com/openstack/nova/commit/3dc84154db18f1112f2023e75a5472bcf28b8f84
Submitter: Jenkins
Branch: master

commit 3dc84154db18f1112f2023e75a5472bcf28b8f84
Author: Joshua Hesketh <email address hidden>
Date: Tue Sep 10 17:00:30 2013 +1000

    Ensure get_all_flavors returns deleted items

    When a flavor is deleted a new one may be created with the same name.
    However when calling flavors.get_all_flavors(inactive=True) only the
    latest flavor with the same name is returned. When inactive=True all
    flavors should be returned regardless of their name or replacement
    state.

    Change the key used in the returned dictionary from
    flavors.get_all_flavors() to the flavorid rather than the name. This
    allows multiple flavors with the same name to be returned.

    Fixes bug 1215295
    Change-Id: I1b0c93b3e12714a5c0798aa87c9e3fe9bc14519a