diff options
| author | Dan Smith <danms@us.ibm.com> | 2013-03-22 12:57:59 -0700 |
|---|---|---|
| committer | Dan Smith <danms@us.ibm.com> | 2013-03-22 12:57:59 -0700 |
| commit | 5908b60b0420f1ad528e56b0c147a330e9a1a5d6 (patch) | |
| tree | bbb0efbfdb5962e025a0bd12f1be52f667351e60 /nova/openstack | |
| parent | a92b7c8f9281cb2dcf8eb6d6a7c466a463719352 (diff) | |
| download | nova-5908b60b0420f1ad528e56b0c147a330e9a1a5d6.tar.gz nova-5908b60b0420f1ad528e56b0c147a330e9a1a5d6.tar.xz nova-5908b60b0420f1ad528e56b0c147a330e9a1a5d6.zip | |
Make _downsize_quota_delta() use stashed instance types
This change changes the _downsize_quota_delta() method to take instance
as a param instead of migration_ref, and use it to extract the old and new
instance_types instead of looking them up in the database. This is needed
for this case since the method can be called from compute manager during
the periodic task to confirm pending migrations, and thus access to the
database may not be allowed.
Fixes bug #1158897
Change-Id: I647c51bc4d30e6dfd62abe7b65a9109d6aa2bb6f
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions
