X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fadmin_topics.py;h=45c21025ddbe77ff2dc9a60c8d65051a1bd2aa8b;hp=968788aea07fe9148a08d135ddcde0931a255193;hb=2bf65930958606064b41b9747dc22512e70523f7;hpb=90fbc9c587e8270b20f06c9dce14de55d92df551 diff --git a/osm_nbi/admin_topics.py b/osm_nbi/admin_topics.py index 968788a..45c2102 100644 --- a/osm_nbi/admin_topics.py +++ b/osm_nbi/admin_topics.py @@ -847,7 +847,7 @@ class RoleTopicAuth(BaseTopic): """ roles = self.auth.get_role_list() system_admin_role = [role for role in roles - if roles["name"] == "system_admin"][0] + if role["name"] == "system_admin"][0] if _id == system_admin_role["_id"]: raise EngineException("You cannot delete system_admin role", http_code=HTTPStatus.FORBIDDEN)