From: Eduardo Sousa Date: Thu, 6 Jun 2019 13:51:23 +0000 (+0100) Subject: Fix bug 744 X-Git-Tag: v6.0.0~9 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F7625%2F1;p=osm%2FNBI.git Fix bug 744 Change-Id: Ife72a5d1c995fd9e7ecb07e06d6a881f4a4ccb99 Signed-off-by: Eduardo Sousa --- diff --git a/osm_nbi/admin_topics.py b/osm_nbi/admin_topics.py index 45c2102..71fb83b 100644 --- a/osm_nbi/admin_topics.py +++ b/osm_nbi/admin_topics.py @@ -768,7 +768,7 @@ class RoleTopicAuth(BaseTopic): raise ValidationError("Operation authorization \".\" should be True/False.") if role_def[-1] == ":": raise ValidationError("Operation cannot end with \".\"") - + role_def_matches = [op for op in operations if op.startswith(role_def)] if len(role_def_matches) == 0: diff --git a/osm_nbi/engine.py b/osm_nbi/engine.py index 2bf6169..f7bc012 100644 --- a/osm_nbi/engine.py +++ b/osm_nbi/engine.py @@ -138,7 +138,7 @@ class Engine(object): for _, value in resources_to_operations["resources_to_operations"].items(): if value not in self.operations: - self.operations += value + self.operations += [value] if config["authentication"]["backend"] == "keystone": self.map_from_topic_to_class["users"] = UserTopicAuth