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: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
# Release the exclusive lock and close the filedescriptor
self._lock.Close()
+ def GetUid(self):
+ return self._uid
+
def __str__(self):
return "%s" % self._uid