[XEND] Fix HVM image shutdown.

Missed HVM image creation's hook into XendDomainInfo.

Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
Alastair Tse committed 2006-11-03 15:15:16 +00:00
1 parent bdc4e604b2
commit 6f9758b848
1 file changed
+2 -2
+2 -2
View File
@@ -460,8 +460,8 @@ class HVMImageHandler(ImageHandler):
reason = vm._readDom('control/shutdown')
log.debug("hvm_shutdown fired, shutdown reason=%s", reason)
for x in shutdown_reasons.keys():
if shutdown_reasons[x] == reason:
for x in DOMAIN_SHUTDOWN_REASONS.keys():
if DOMAIN_SHUTDOWN_REASONS[x] == reason:
vm.info['shutdown'] = 1
vm.info['shutdown_reason'] = x
vm.refreshShutdown(vm.info)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.