From 06454ff92ece7dd4998294fbe7b8d7214d83924d Mon Sep 17 00:00:00 2001 From: slavkap <51903378+slavkap@users.noreply.github.com> Date: Mon, 17 May 2021 16:45:29 +0300 Subject: [PATCH] tests: Fix in Marvin migrate_vm_with_volume (#5023) Cannot migrate VM to another storage, because 'migrateto' is overriden. --- tools/marvin/marvin/lib/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/marvin/marvin/lib/base.py b/tools/marvin/marvin/lib/base.py index efe7331d0dc..0769f27b438 100755 --- a/tools/marvin/marvin/lib/base.py +++ b/tools/marvin/marvin/lib/base.py @@ -867,8 +867,8 @@ class VirtualMachine: if hostid: cmd.hostid = hostid if migrateto: - migrateto = [] - for volume, pool in migrateto.items(): + cmd.migrateto = [] + for volume, pool in list(migrateto.items()): cmd.migrateto.append({ 'volume': volume, 'pool': pool