From: tierno Date: Wed, 16 Oct 2019 09:00:13 +0000 (+0000) Subject: bug 864 fix operation (created/edited) published to kafka X-Git-Tag: v7.0.0rc1~28 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=15a1f68badbe4865b7abb3cb9ac816ed963d4b63;p=osm%2FNBI.git bug 864 fix operation (created/edited) published to kafka Change-Id: Ia96573a0f79da88d2d893101cc9daed0f46bbc7a Signed-off-by: tierno --- diff --git a/osm_nbi/__init__.py b/osm_nbi/__init__.py index 8e72edf..1be799c 100644 --- a/osm_nbi/__init__.py +++ b/osm_nbi/__init__.py @@ -12,5 +12,5 @@ # under the License. ## -version = '6.0.2.post5' -version_date = '2018-09-13' +version = '6.0.3.post15' +version_date = '2018-10-17' diff --git a/osm_nbi/admin_topics.py b/osm_nbi/admin_topics.py index 71dfa3c..b41e457 100644 --- a/osm_nbi/admin_topics.py +++ b/osm_nbi/admin_topics.py @@ -530,7 +530,7 @@ class UserTopicAuth(UserTopic): rollback.append({"topic": self.topic, "_id": _id}) # del content["password"] - # self._send_msg("create", content) + # self._send_msg("created", content) return _id, None except ValidationError as e: raise EngineException(e, HTTPStatus.UNPROCESSABLE_ENTITY) @@ -814,7 +814,7 @@ class ProjectTopicAuth(ProjectTopic): self.format_on_new(content, project_id=session["project_id"], make_public=session["public"]) _id = self.auth.create_project(content) rollback.append({"topic": self.topic, "_id": _id}) - # self._send_msg("create", content) + # self._send_msg("created", content) return _id, None except ValidationError as e: raise EngineException(e, HTTPStatus.UNPROCESSABLE_ENTITY) @@ -1127,7 +1127,7 @@ class RoleTopicAuth(BaseTopic): content["_id"] = rid # _id = self.db.create(self.topic, content) rollback.append({"topic": self.topic, "_id": rid}) - # self._send_msg("create", content) + # self._send_msg("created", content) return rid, None except ValidationError as e: raise EngineException(e, HTTPStatus.UNPROCESSABLE_ENTITY) diff --git a/osm_nbi/base_topic.py b/osm_nbi/base_topic.py index c22833b..70c8dff 100644 --- a/osm_nbi/base_topic.py +++ b/osm_nbi/base_topic.py @@ -389,7 +389,7 @@ class BaseTopic: rollback.append({"topic": self.topic, "_id": _id}) if op_id: content["op_id"] = op_id - self._send_msg("create", content) + self._send_msg("created", content) return _id, op_id except ValidationError as e: raise EngineException(e, HTTPStatus.UNPROCESSABLE_ENTITY) @@ -510,7 +510,7 @@ class BaseTopic: if op_id: indata["op_id"] = op_id indata["_id"] = _id - self._send_msg("edit", indata) + self._send_msg("edited", indata) return op_id except ValidationError as e: raise EngineException(e, HTTPStatus.UNPROCESSABLE_ENTITY)