def update(self, request, job_id, body): metadata = body['metadata'] new_meta = api_utils.deserialize_metadata(metadata) try: updated_meta = self.db_api.job_metadata_update(job_id, new_meta) except exception.NotFound, e: raise webob.exc.HTTPNotFound(explanation=e)
def update(self, request, schedule_id, body): metadata = body['metadata'] try: new_meta = api_utils.deserialize_metadata(metadata) except exception.MissingValue, e: raise webob.exc.HTTPBadRequest(explanation=e)