Commit 1f243fb5 authored by Anael Beutot's avatar Anael Beutot
Browse files

comment + variable renaming

parent acc50269
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -327,13 +327,17 @@ class Handler(HostHandler):
        logger.debug('VM live migrate %s', name)

        try:
            # this is the port used by our libvirt in the cc-node (client
            # libvirt) to connect to the remote libvirtd
            remote_virt_port = tun_res['port']
        except KeyError:
            logger.error('Invalid formatted argument tun_res for live'
                         ' migration')
            raise
        try:
            remote_hv_port = migtun_res['port']
            # this is the port used by local libvirtd to connect to the remote
            # libvirtd (see http://libvirt.org/migration.html)
            remote_virt_port2 = migtun_res['port']
        except KeyError:
            logger.error('Invalid formatted argument migtun_res for live'
                         ' migration')
@@ -414,7 +418,7 @@ class Handler(HostHandler):
                    libvirt.VIR_MIGRATE_UNDEFINE_SOURCE |
                    append_flags,
                    None,
                    'qemu+tcp://127.0.0.1:%d/system' % remote_hv_port,
                    'qemu+tcp://127.0.0.1:%d/system' % remote_virt_port2,
                    0,
                )
            except libvirt.libvirtError: