Skip to content

Commit

Permalink
fix pwd import
Browse files Browse the repository at this point in the history
  • Loading branch information
tfoote committed Feb 18, 2025
1 parent 4cf2f93 commit be1a676
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rocker/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ def get_name():
return 'user'

def get_environment_subs(self):
import pwd
if not self._env_subs:
user_vars = ['name', 'uid', 'gid', 'gecos','dir', 'shell']
userinfo = pwd.getpwuid(os.getuid())
Expand Down

0 comments on commit be1a676

Please sign in to comment.