X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fadmin_topics.py;h=71fb83b5dde738d3bd1a2284d215d280643458ee;hp=45c21025ddbe77ff2dc9a60c8d65051a1bd2aa8b;hb=c5a18892d3b9e5a515c3adab0bafcdc097d9fe28;hpb=2bf65930958606064b41b9747dc22512e70523f7;ds=sidebyside 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: