def commandResult(username, state, command_name, machine_id, fields):
start_time = 0
def commandResult(username, state, command_name, machine_id, fields):
start_time = 0
machine = validation.Validate(username, state, machine_id=machine_id).machine
action = command_name
cdrom = fields.get('cdrom') or None
machine = validation.Validate(username, state, machine_id=machine_id).machine
action = command_name
cdrom = fields.get('cdrom') or None