Fix bug 744 25/7625/1
authorEduardo Sousa <eduardo.sousa@canonical.com>
Thu, 6 Jun 2019 13:51:23 +0000 (14:51 +0100)
committerEduardo Sousa <eduardo.sousa@canonical.com>
Thu, 6 Jun 2019 13:51:23 +0000 (14:51 +0100)
Change-Id: Ife72a5d1c995fd9e7ecb07e06d6a881f4a4ccb99
Signed-off-by: Eduardo Sousa <eduardo.sousa@canonical.com>
osm_nbi/admin_topics.py
osm_nbi/engine.py

index 45c2102..71fb83b 100644 (file)
@@ -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:
index 2bf6169..f7bc012 100644 (file)
@@ -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