Change-Id: Ife72a5d1c995fd9e7ecb07e06d6a881f4a4ccb99
Signed-off-by: Eduardo Sousa <eduardo.sousa@canonical.com>
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:
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