1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 23:25:24 +00:00

fix instance compute node after migration

This commit is contained in:
Jan Krcmar 2016-04-21 13:08:20 +02:00
parent f8e681dbf4
commit 0e7c5c25b7

View file

@ -549,6 +549,8 @@ def instance(request, compute_id, vname):
new_compute.type)
conn_migrate.moveto(conn, vname, live, unsafe, xml_del)
conn_migrate.define_move(vname)
instance.compute = new_compute
instance.save()
conn_migrate.close()
msg = _("Migrate")
addlogmsg(request.user.username, instance.name, msg)