From 2bf65930958606064b41b9747dc22512e70523f7 Mon Sep 17 00:00:00 2001 From: Eduardo Sousa Date: Thu, 6 Jun 2019 14:20:58 +0100 Subject: [PATCH 1/1] Fix bug 743 Change-Id: I522e3df0e4263185ca334649a123907cae1b1a79 Signed-off-by: Eduardo Sousa --- osm_nbi/admin_topics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.17.1