summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-05-30 21:38:40 +0000
committerGerrit Code Review <review@openstack.org>2012-05-30 21:38:40 +0000
commitcb7c4377b373857cc57e95b84d4e93b0f785673c (patch)
treedb08ce4b379c43bcb356d8d8a0ae09cf49bd4f42 /nova/tests
parent3ff85a2963cb8124a294108591373f94ece9180c (diff)
parent7b0c40309a716620f6e641037204927d0688de15 (diff)
Merge "Make xenapi fake match real xenapi a bit closer"
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_xenapi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/test_xenapi.py b/nova/tests/test_xenapi.py
index b2a15c109..1e2ef964a 100644
--- a/nova/tests/test_xenapi.py
+++ b/nova/tests/test_xenapi.py
@@ -449,7 +449,7 @@ class XenAPIVMTestCase(test.TestCase):
# If the cache is turned on then the base disk will be
# there even after the cleanup
if 'other_config' in vdi_rec:
- if vdi_rec['other_config']['image-id'] is None:
+ if 'image-id' not in vdi_rec['other_config']:
self.fail('Found unexpected VDI:%s' % vdi_ref)
else:
self.fail('Found unexpected VDI:%s' % vdi_ref)