Пример #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
def test_set_boot_device():
    virt = Virt()
    ok_(virt.attach_iso("test", "cdrom"))
Пример #4
0
def test_attach_iso_to_active_domain():
    virt = Virt()
    ok_(virt.attach_iso("test", "test.iso"))