bitkeeper revision 1.1159.187.60 (41b899a4tjdjzfL7v1mQOH5gIHlqQQ)

Another sysrq fix...
This commit is contained in:
kaf24@scramble.cl.cam.ac.uk committed 2004-12-09 18:29:56 +00:00
1 parent c03e136278
commit e044b31856
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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
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.