raise CodeError("Invalid cdrom type '%s'" % cdrom)
if action not in "reboot create destroy shutdown delete".split(" "):
raise CodeError("Invalid action '%s'" % action)
raise CodeError("Invalid cdrom type '%s'" % cdrom)
if action not in "reboot create destroy shutdown delete".split(" "):
raise CodeError("Invalid action '%s'" % action)