diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2013-05-08 15:47:47 -0700 |
---|---|---|
committer | Phil Day <philip.day@hp.com> | 2013-06-26 21:08:13 +0100 |
commit | 5ff0278561d4008bc710440129f4a7b5c38cdd98 (patch) | |
tree | cd3ac4c33477a1ed089822514c07736d84bded85 /nova/exception.py | |
parent | 7696c3c11f0de855cbc53cc04ee7d2be07ae3b9c (diff) | |
download | nova-5ff0278561d4008bc710440129f4a7b5c38cdd98.tar.gz nova-5ff0278561d4008bc710440129f4a7b5c38cdd98.tar.xz nova-5ff0278561d4008bc710440129f4a7b5c38cdd98.zip |
Report the az based on the value in the instance table.
When attempting to find the availability zone of an instance
do so by first trying to locate the availability zone of the
host the instance is active on. If that fails then attempt
to use the value that is in the instances 'availability_zone'
key instead.
For the caching used in the availability_zones module there
was a new method added to get and reset the cache that is
useful for unit tests, since during each run of a test you
do not want to be affected by something in cache from a previous
test.
Fixes bug 1172246
Change-Id: I6f54a44cc87434120656ccc789cebcc08d434418
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions