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

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

parent 9fca638d
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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']
            }