예제 #1
0
파일: vm.py 프로젝트: hfm/maglica
def attach_iso(args):
    options = {
        "mandatory": ["name", "iso"],
        "optional" : [],
    }
    check_args(args, options)

    name = args["name"]
    iso  = args["iso"]

    virt = Virt(hosts())
    virt.attach_iso(name, iso)
예제 #2
0
def attach_iso(args):
    options = {
        "mandatory": ["name", "iso"],
        "optional": [],
    }
    check_args(args, options)

    name = args["name"]
    iso = args["iso"]

    virt = Virt(hosts())
    virt.attach_iso(name, iso)
예제 #3
0
파일: virt.py 프로젝트: hfm/maglica
def test_set_boot_device():
    virt = Virt()
    ok_(virt.attach_iso("test", "cdrom"))
예제 #4
0
파일: virt.py 프로젝트: hfm/maglica
def test_attach_iso_to_active_domain():
    virt = Virt()
    ok_(virt.attach_iso("test", "test.iso"))