X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fbase_topic.py;h=bbe63377cae19ad22594209c30b2ed50f5df9778;hp=95724092a4c1a53033c15153606584159632c66f;hb=341ac1bac7b115d64a50ec166aa5e6d186b39443;hpb=cddb07d092fdcf72ce2c87cd801b93732e64d3a9;ds=sidebyside diff --git a/osm_nbi/base_topic.py b/osm_nbi/base_topic.py index 9572409..bbe6337 100644 --- a/osm_nbi/base_topic.py +++ b/osm_nbi/base_topic.py @@ -147,7 +147,7 @@ class BaseTopic: if count >= quota: name = proj["name"] raise ValidationError("quota ({}={}) exceeded for project {} ({})".format(quota_name, quota, name, pid), - http_code=HTTPStatus.UNAUTHORIZED) + http_code=HTTPStatus.UNPROCESSABLE_ENTITY) def _validate_input_new(self, input, force=False): """ @@ -308,6 +308,7 @@ class BaseTopic: def _send_msg(self, action, content, not_send_msg=None): if self.topic_msg and not_send_msg is not False: + content = content.copy() content.pop("_admin", None) if isinstance(not_send_msg, list): not_send_msg.append((self.topic_msg, action, content))