check(re.match('^[A-Za-z0-9][A-Za-z0-9._-]*$', machine.name))
lvname = prefix + machine.name + "_" + d.guest_device_name
if not os.path.exists("/dev/%s/%s" % (vg, lvname)):
check(re.match('^[A-Za-z0-9][A-Za-z0-9._-]*$', machine.name))
lvname = prefix + machine.name + "_" + d.guest_device_name
if not os.path.exists("/dev/%s/%s" % (vg, lvname)):