diff options
author | Chris Behrens <cbehrens@codestud.com> | 2013-02-25 15:39:32 +0000 |
---|---|---|
committer | Chris Behrens <cbehrens@codestud.com> | 2013-03-01 17:00:48 +0000 |
commit | f225b1d20dad1464960dc01243f38924faf4cba9 (patch) | |
tree | 01d99a6ac0785c686369ae3c97778d566353a031 /nova/utils.py | |
parent | 14df42b15fabc70472bb23264cf73acf4bfbe83d (diff) | |
download | nova-f225b1d20dad1464960dc01243f38924faf4cba9.tar.gz nova-f225b1d20dad1464960dc01243f38924faf4cba9.tar.xz nova-f225b1d20dad1464960dc01243f38924faf4cba9.zip |
instance_info_cache_update creates wrongly
If instance_info_cache_update() finds that the entry doesn't exist, it
attempts to create an entry, but it didn't use all of the data. This
patch fixes that.
Also if the info_cache entry was found to be deleted, the old code would
attempt to create a new entry. This would have failed with
DBDuplicateEntry.. Instead, raise InstanceInfoCacheNotFound, which is
more appropriate. (It doesn't seem we actually ever hit this case.)
Fixes bug 1131594
Change-Id: Id008faf5c4a48ab6a04e75796b7e61dea102acc9
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions