未验证 提交 6e61992c 编写于 作者: X Xu Han 提交者: GitHub

Merge pull request #1340 from luckyh/multi-host-python3-misc

multi_host_migration: To pass ci check for python 3
......@@ -260,7 +260,7 @@ def run(test, params, env):
function, called by utils.InterruptedThread()
"""
self.parameters_value = map(int, self.parameters_value)
self.parameters_value = list(map(int, self.parameters_value))
vm = self.env.get_vm(self.params["main_vm"])
while self.migration_timeout:
list_item = self.get_mig_cpu_throttling_percentage(vm)
......
......@@ -121,7 +121,7 @@ def run(test, params, env):
fd, mig_data):
logging.info("Set downtime after migration.")
downtime = 0
for downtime in xrange(1, self.max_downtime):
for downtime in range(1, self.max_downtime):
try:
vm.wait_for_migration(self.wait_mig_timeout)
break
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册