diff --git a/multi_host_migration/tests/migration_multi_host_auto_converge.py b/multi_host_migration/tests/migration_multi_host_auto_converge.py index e8b61217297e4ff63e77dc40d509e4b7950c4d1b..35ee393a18d4b6c3012b0086412ccef86bc1a269 100644 --- a/multi_host_migration/tests/migration_multi_host_auto_converge.py +++ b/multi_host_migration/tests/migration_multi_host_auto_converge.py @@ -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) diff --git a/multi_host_migration/tests/migration_multi_host_downtime_and_speed.py b/multi_host_migration/tests/migration_multi_host_downtime_and_speed.py index ac19737949e1882ef3b20ca7df4f4f3486cbf3f0..261846fc9a1141c899616610ababd5a0bbd5465f 100644 --- a/multi_host_migration/tests/migration_multi_host_downtime_and_speed.py +++ b/multi_host_migration/tests/migration_multi_host_downtime_and_speed.py @@ -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