[PKG-Openstack-devel] Bug#823166:
Ondrej Novy
novy at ondrej.org
Tue May 3 21:55:11 UTC 2016
I can't reproduce it locally.
Can you attach output of this script from your env please?
#!/usr/bin/python
import getpass
import pwd
import os
import grp
user = getpass.getuser()
ugroup = pwd.getpwnam(user).pw_gid
os_groups = os.getgroups()
groups = [g.gr_gid for g in grp.getgrall() if user in g.gr_mem]
print "getpass.getuser: %s" % user
print "pwd.getpwname(user).pw_gid: %d" % ugroup
print "os.getgroups(): %s" % os_groups
print "grp.getgrall() filtered: %s" % groups
######################
My result:
onovy at sid:~$ ./test.py
getpass.getuser: onovy
pwd.getpwname(user).pw_gid: 1000
os.getgroups(): [27, 117, 1000]
grp.getgrall() filtered: [27, 117]
Which passes tests.
Thanks.
--
Best regards
Bc. Ondrej Novy
Email: novy at ondrej.org
GPG: 3D98 3C52 EB85 980C 46A5 6090 3573 1255 9D1E 064B
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/openstack-devel/attachments/20160503/a260bf3a/attachment.html>
More information about the Openstack-devel
mailing list