Skip to content

Commit 06454ff

Browse files
authored
tests: Fix in Marvin migrate_vm_with_volume (#5023)
Cannot migrate VM to another storage, because 'migrateto' is overriden.
1 parent 2286c8d commit 06454ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/marvin/marvin/lib/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,8 +867,8 @@ def migrate_vm_with_volume(self, apiclient, hostid=None, migrateto=None):
867867
if hostid:
868868
cmd.hostid = hostid
869869
if migrateto:
870-
migrateto = []
871-
for volume, pool in migrateto.items():
870+
cmd.migrateto = []
871+
for volume, pool in list(migrateto.items()):
872872
cmd.migrateto.append({
873873
'volume': volume,
874874
'pool': pool

0 commit comments

Comments
 (0)