X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Fcore%2Fkeystone.py;h=98a8d78c278f6c49c37cc64888fee87233e040e5;hb=8d12a63175dcfbb7d5468f55c93a05797a912ddd;hp=d79ea89f09c7e2d1387e4f4aaf4898c5e831de02;hpb=cd89bb46119f6819320827a578a4a7f8b61ae7ff;p=osm%2FMON.git diff --git a/osm_mon/core/keystone.py b/osm_mon/core/keystone.py index d79ea89..98a8d78 100644 --- a/osm_mon/core/keystone.py +++ b/osm_mon/core/keystone.py @@ -56,3 +56,9 @@ class KeystoneConnection: Grabs projects from keystone using the client and session build in the constructor """ return self.keystone_client.projects.list() + + def getUserById(self, user_id): + """ + Grabs user object from keystone using user id + """ + return self.keystone_client.users.get(user_id)