예제 #1
0
파일: virt.py 프로젝트: hfm/maglica
def test_get_domains():
    virt = Virt()
    virt.hosts[0]["conn"].defineXML(xml)
    dom = virt.get_inactive_domain("test2")
    domains = virt.get_domains()
    eq_(domains[0]["name"], "test")
    eq_(domains[1]["name"], "test2")
예제 #2
0
파일: vm.py 프로젝트: hfm/maglica
def list():
    virt = Virt(hosts())
    return virt.get_domains()
예제 #3
0
def list():
    virt = Virt(hosts())
    return virt.get_domains()