Fix XendAPI VM_migrate parameters

This patch removes unused resource parameter and fixes the default
value for domain_migrate. Also removes tab indent in XendOptions.py.

Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
This commit is contained in:
Keir Fraser committed 2008-05-26 08:26:37 +01:00
1 parent 101b0e44af
commit 11b6a5dbe0
2 files changed
+4 -5

No files matched your search

+3 -4
View File
@@ -1759,13 +1759,12 @@ class XendAPI(object):
xendom = XendDomain.instance()
xeninfo = xendom.get_vm_by_uuid(vm_ref)
resource = other_config.get("resource", 0)
port = other_config.get("port", 0)
node = other_config.get("node", 0)
ssl = other_config.get("ssl", 0)
node = other_config.get("node", -1)
ssl = other_config.get("ssl", None)
xendom.domain_migrate(xeninfo.getDomid(), destination_url,
bool(live), resource, port, node, ssl)
bool(live), port, node, ssl)
return xen_api_success_void()
def VM_save(self, _, vm_ref, dest, checkpoint):
+1 -1
View File
@@ -222,7 +222,7 @@ class XendOptions:
self.xend_relocation_port_default)
def get_xend_relocation_ssl_port(self):
"""Get the port xend listens at for ssl connection to its relocation
"""Get the port xend listens at for ssl connection to its relocation
server.
"""
return self.get_config_int('xend-relocation-ssl-port',
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.