summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-08-13 16:35:55 +0000
committerGerrit Code Review <review@openstack.org>2012-08-13 16:35:55 +0000
commit7c9bb06622c72e5ec823f15a98cd9ea93d094f2a (patch)
treeca362d94ff5eb960b4205b0c5a0e0ead90f9bf77 /nova
parentdafa79ff7880af907b5836d832e6c5dbfd7e0529 (diff)
parenta0ef5ad84f1ce3502e17215ef49c83d2738d2a84 (diff)
downloadnova-7c9bb06622c72e5ec823f15a98cd9ea93d094f2a.tar.gz
nova-7c9bb06622c72e5ec823f15a98cd9ea93d094f2a.tar.xz
nova-7c9bb06622c72e5ec823f15a98cd9ea93d094f2a.zip
Merge "Fix type error in state comparison"
Diffstat (limited to 'nova')
-rw-r--r--nova/virt/libvirt/imagecache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/libvirt/imagecache.py b/nova/virt/libvirt/imagecache.py
index fe96f1aec..ba350749a 100644
--- a/nova/virt/libvirt/imagecache.py
+++ b/nova/virt/libvirt/imagecache.py
@@ -142,7 +142,7 @@ class ImageCacheManager(object):
task_states.RESIZE_MIGRATED,
task_states.RESIZE_FINISH]
if instance['task_state'] in resize_states or \
- instance['vm_state'] in vm_states.RESIZED:
+ instance['vm_state'] == vm_states.RESIZED:
self.instance_names.add(instance['name'] + '_resize')
image_ref_str = str(instance['image_ref'])