X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Fcore%2Fkeystone.py;h=98a8d78c278f6c49c37cc64888fee87233e040e5;hb=0ab6407f2b68db44fbcf07ff2764153e2a896eaf;hp=d79ea89f09c7e2d1387e4f4aaf4898c5e831de02;hpb=2fe71f21fe75ee283d39e66391d7d3a094713569;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)