generated from IBM/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
getpass.getuser fails when called from containers and returns the following error.
File ""/.pyenv/versions/python39_loaded/lib/python3.9/site-packages/nzpy/core.py"", line 1530, in __init__
hs = handshake.Handshake(self._usock, self._sock, ssl, self.log)
File ""/.pyenv/versions/python39_loaded/lib/python3.9/site-packages/nzpy/handshake.py"", line 76, in __init__
self.guardium_clientOSUser = getuser()
File ""/.pyenv/versions/3.9.10/lib/python3.9/getpass.py"", line 169, in getuser
return pwd.getpwuid(os.getuid())[0]
KeyError: 'getpwuid(): uid not found: 10000'"
A similar issue was noted in a package called ansible and was resolved in ansible/ansible#68007
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels