projects
/
osm
/
MON.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix for bug 1447 Grafana user not associated with team
[osm/MON.git]
/
osm_mon
/
core
/
common_db.py
diff --git
a/osm_mon/core/common_db.py
b/osm_mon/core/common_db.py
index
ce44d4d
..
aa65388
100644
(file)
--- a/
osm_mon/core/common_db.py
+++ b/
osm_mon/core/common_db.py
@@
-162,3
+162,6
@@
class CommonDbClient:
def get_role_by_name(self, name: str):
return self.common_db.get_one('roles', {'name': name})
+
+ def get_role_by_id(self, role_id: str):
+ return self.common_db.get_one('roles', {'_id': role_id})