Commit 2c5cc3c7 authored by Antoine Millet's avatar Antoine Millet

Fixed bug with bad retrieval of vm hv/name in full id.

parent 9fca638d
......@@ -751,11 +751,14 @@ class CliHandler(OnlineCCHandler):
errs.error(migration['sid'], errmsg)
continue
self._server.objects.update(ids=(migration['sid'],))
vm = self._server.objects.get_by_id(migration['sid'])
# Construct the migration properties:
migration_properties = {
'author': client.login,
'vm_name': migration['sid'].split('.')[-1],
'hv_source': '.'.join(migration['sid'].split('.')[:-1]),
'vm_name': vm['h'],
'hv_source': vm['p'],
'hv_dest': migration['did']
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment