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.
Reviewed: https:/ /review. openstack. org/45819 github. com/openstack/ nova/commit/ 3dc84154db18f11 12f2023e75a5472 bcf28b8f84
Committed: http://
Submitter: Jenkins
Branch: master
commit 3dc84154db18f11 12f2023e75a5472 bcf28b8f84
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. get_all_ flavors( inactive= True) only the
However when calling flavors.
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 get_all_ flavors( ) to the flavorid rather than the name. This
flavors.
allows multiple flavors with the same name to be returned.
Fixes bug 1215295 a5c0798aa87c9e3 fe9bc14519a
Change-Id: I1b0c93b3e12714