X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fengine.py;h=1f7f0f0eb7ea453935f5cfc340b55696fbd8cdc1;hp=0ba57cb6fc62c58ef8c5ea29a631fa7fecdb0883;hb=a50357015c2cc8b3392dd8313cd592b38775bb9f;hpb=ceb8baf31217c9d50ce7017beb25c59163d79b6e diff --git a/osm_nbi/engine.py b/osm_nbi/engine.py index 0ba57cb..1f7f0f0 100644 --- a/osm_nbi/engine.py +++ b/osm_nbi/engine.py @@ -267,7 +267,7 @@ class Engine(object): :param session: contains the used login username and working project :param topic: it can be: users, projects, vnfds, nsds, ... :param _id: server id of the item - :return: dictionary with deleted item _id. It raises exception if not found. + :return: operation id (None if there is not operation), raise exception if error or not found. """ if topic not in self.map_topic: raise EngineException("Unknown topic {}!!!".format(topic), HTTPStatus.INTERNAL_SERVER_ERROR) @@ -282,7 +282,7 @@ class Engine(object): :param _id: identifier to be updated :param indata: data to be inserted :param kwargs: used to override the indata descriptor - :return: dictionary, raise exception if not found. + :return: operation id (None if there is not operation), raise exception if error or not found. """ if topic not in self.map_topic: raise EngineException("Unknown topic {}!!!".format(topic), HTTPStatus.INTERNAL_SERVER_ERROR)