projects
/
osm
/
NBI.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90fbc9c
)
Fix bug 743
24/7624/1
author
Eduardo Sousa
<eduardo.sousa@canonical.com>
Thu, 6 Jun 2019 13:20:58 +0000
(14:20 +0100)
committer
Eduardo Sousa
<eduardo.sousa@canonical.com>
Thu, 6 Jun 2019 13:20:58 +0000
(14:20 +0100)
Change-Id: I522e3df0e4263185ca334649a123907cae1b1a79
Signed-off-by: Eduardo Sousa <eduardo.sousa@canonical.com>
osm_nbi/admin_topics.py
patch
|
blob
|
history
diff --git
a/osm_nbi/admin_topics.py
b/osm_nbi/admin_topics.py
index
968788a
..
45c2102
100644
(file)
--- 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 role
s
["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)