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