Fix flavor deletion when there is a deleted flavor
If there is a deleted flavor with the same ID as an undeleted flavor,
the flavormanage delete code attempts to delete it again, which fails.
This patch makes sure to pass read_deleted='no' when the flavor is
retrieved for deletion so we get the undeleted flavor. Includes a
failing test to make sure the value is passed properly.
Reviewed: https:/ /review. openstack. org/12729 github. com/openstack/ nova/commit/ d741328543ad605 9bef56adb59f4c9 4781eaedcd
Committed: http://
Submitter: Jenkins
Branch: master
commit d741328543ad605 9bef56adb59f4c9 4781eaedcd
Author: Vishvananda Ishaya <email address hidden>
Date: Mon Sep 10 12:15:02 2012 -0700
Fix flavor deletion when there is a deleted flavor
If there is a deleted flavor with the same ID as an undeleted flavor,
the flavormanage delete code attempts to delete it again, which fails.
This patch makes sure to pass read_deleted='no' when the flavor is
retrieved for deletion so we get the undeleted flavor. Includes a
failing test to make sure the value is passed properly.
Fixes bug 1048678
Change-Id: If6a20de2526b7b a90ada4a40317a9 8f79b2141dc