'Set the status of the item'

def set_status(self, status):

    if (status.upper() in ('RUNNING', 'FAIL', 'READY', 'USED')):
        self.status = status.upper()
    else:
        raise exception.CmdErr, ('%s    invalid    status' % status)
