tests: Fix in Marvin migrate_vm_with_volume (#5023)

Cannot migrate VM to another storage, because 'migrateto' is overriden.
This commit is contained in:
slavkap 2021-05-17 16:45:29 +03:00 committed by GitHub
parent 2286c8d2bf
commit 06454ff92e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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