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)
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)
def test_set_boot_device(): virt = Virt() ok_(virt.attach_iso("test", "cdrom"))
def test_attach_iso_to_active_domain(): virt = Virt() ok_(virt.attach_iso("test", "test.iso"))