Fix get user and group name

pull/1/head
Christophe Mehay 8 years ago
parent a7dfafdc00
commit 6f54e6bc99

@ -78,7 +78,7 @@ class Config(object):
if 'user' in self._config:
if isinstance(self._config['user'], int):
return self._config['user']
return getpwnam(name=self._config['user']).pw_uid
return getpwnam(self._config['user']).pw_uid
return os.getuid()
@property
@ -87,7 +87,7 @@ class Config(object):
if 'group' in self._config:
if isinstance(self._config['user'], int):
return self._config['user']
return getgrnam(name=self._config['user']).pw_gid
return getgrnam(self._config['user']).pw_gid
return os.getgid()
@property

@ -9,7 +9,7 @@ setup(
name='pyentrypoint',
version='0.1.10',
version='0.1.11',
packages=find_packages(),

Loading…
Cancel
Save