Commit 14850c5e authored by Guido Trotter's avatar Guido Trotter
Browse files

LockedUid: add GetUid() method



uidpool users that get passed a LockedUid by the uidpool need to know
which one the uid is. Since it's not nice to make them access a private
member, and we shouldn't make "uid" public either, we'll add a getter
method.
Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 8904b35c
......@@ -215,6 +215,9 @@ class LockedUid(object):
# Release the exclusive lock and close the filedescriptor
self._lock.Close()
def GetUid(self):
return self._uid
def __str__(self):
return "%s" % self._uid
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment