From c5a18892d3b9e5a515c3adab0bafcdc097d9fe28 Mon Sep 17 00:00:00 2001 From: Eduardo Sousa Date: Thu, 6 Jun 2019 14:51:23 +0100 Subject: [PATCH] Fix bug 744 Change-Id: Ife72a5d1c995fd9e7ecb07e06d6a881f4a4ccb99 Signed-off-by: Eduardo Sousa --- osm_nbi/admin_topics.py | 2 +- osm_nbi/engine.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1