mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
bitkeeper revision 1.1159.187.60 (41b899a4tjdjzfL7v1mQOH5gIHlqQQ)
Another sysrq fix...
This commit is contained in:
1 parent
c03e136278
commit
e044b31856
4 files changed
+4
-4
No files matched your search
@@ -228,7 +228,7 @@ class Xend:
|
||||
return self.xendPost(self.domainurl(id),
|
||||
{'op' : 'pause' })
|
||||
|
||||
def xend_domain_shutdown(self, id, reason, key=None):
|
||||
def xend_domain_shutdown(self, id, reason, key=0):
|
||||
return self.xendPost(self.domainurl(id),
|
||||
{'op' : 'shutdown',
|
||||
'reason' : reason,
|
||||
|
||||
@@ -455,7 +455,7 @@ class XendDomain:
|
||||
except Exception, ex:
|
||||
raise XendError(str(ex))
|
||||
|
||||
def domain_shutdown(self, id, reason='poweroff', key=None):
|
||||
def domain_shutdown(self, id, reason='poweroff', key=0):
|
||||
"""Shutdown domain (nicely).
|
||||
- poweroff: restart according to exit code and restart mode
|
||||
- reboot: restart on exit
|
||||
|
||||
@@ -711,7 +711,7 @@ class Daemon:
|
||||
raise XendError('Invalid console id')
|
||||
console.disconnect()
|
||||
|
||||
def domain_shutdown(self, dom, reason, key=None):
|
||||
def domain_shutdown(self, dom, reason, key=0):
|
||||
"""Shutdown a domain.
|
||||
"""
|
||||
dom = int(dom)
|
||||
|
||||
@@ -37,7 +37,7 @@ class DomainController(controller.Controller):
|
||||
self.addMethod(CMSG_MEM_REQUEST, 0, None)
|
||||
self.registerChannel()
|
||||
|
||||
def shutdown(self, reason, key=None):
|
||||
def shutdown(self, reason, key=0):
|
||||
"""Shutdown a domain.
|
||||
|
||||
reason shutdown reason
|
||||
|
||||