This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.15
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.15 by this push:
     new 06454ff  tests: Fix in Marvin migrate_vm_with_volume (#5023)
06454ff is described below

commit 06454ff92ece7dd4998294fbe7b8d7214d83924d
Author: slavkap <[email protected]>
AuthorDate: Mon May 17 16:45:29 2021 +0300

    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 efe7331..0769f27 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

Reply via email to