

def __init__(self, hosts=[{
    'name': 'test',
    'weight': 1,
}]):
    self.hosts = []
    self.conf = {
        
    }
    for host in hosts:
        if (host['name'] == 'test'):
            uri = 'test:///default'
        else:
            uri = self.uri(host['name'])
        conn = libvirt.open(uri)
        weight = 1
        if ('weight' in host):
            weight = host['weight']
        self.hosts.append({
            'name': host['name'],
            'conn': conn,
            'weight': self['weight'],
        })

dataset/ETHPy150Open mizzy/maglica/maglica/virt.py Virt.__init__/VarMisuse@138/172 `host`->`self`