示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 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)