summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Smith <danms@us.ibm.com>2012-10-29 14:35:10 -0700
committerDan Smith <danms@us.ibm.com>2012-10-29 15:46:41 -0700
commitb21cc437be1e0a78f33419b70be6b9fb6ea5d7f7 (patch)
tree306b49e268e0f4ed4181fd30fc252e93ad91c8e2
parenta37cde30a6f43d3c757115828c4f4a6e74923194 (diff)
downloadnova-b21cc437be1e0a78f33419b70be6b9fb6ea5d7f7.tar.gz
nova-b21cc437be1e0a78f33419b70be6b9fb6ea5d7f7.tar.xz
nova-b21cc437be1e0a78f33419b70be6b9fb6ea5d7f7.zip
Fix typo in xenapi/host.py
The failure path for host evacuation has a typo in the instance_update() call to restore the 'host' attribute. Change-Id: If45ea907b411ffc8c751c608e487828972337c5c
-rw-r--r--nova/virt/xenapi/host.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/xenapi/host.py b/nova/virt/xenapi/host.py
index b4361ae03..5186a40ce 100644
--- a/nova/virt/xenapi/host.py
+++ b/nova/virt/xenapi/host.py
@@ -101,7 +101,7 @@ class Host(object):
(old_ref, new_ref) = db.instance_update_and_get_original(
ctxt,
instance['uuid'],
- {'hosts': host,
+ {'host': host,
'vm_state': vm_states.ACTIVE})
notifications.send_update(ctxt, old_ref, new_ref)