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:
parent
f8e681dbf4
commit
0e7c5c25b7
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue