

def get_active_domain(self, name):
    for host in self.hosts:
        conn = host['conn']
        ids = conn.listDomainsID()
        for id in ids:
            dom = conn.lookupByID(id)
            if (dom == dom.name()):
                return (dom, host['name'])
    return (None, None)

dataset/ETHPy150Open mizzy/maglica/maglica/virt.py Virt.get_active_domain/VarMisuse@54/66 `name`->`dom`