1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #8139 from peterkh/devel

Fix "TypeError: group id must be integer" if groupid passed in for group key
This commit is contained in:
Michael DeHaan 2014-07-16 15:55:14 -04:00
commit 64b874129f

View file

@ -440,7 +440,7 @@ class User(object):
def group_exists(self,group):
try:
if group.isdigit():
if grp.getgrgid(group):
if grp.getgrgid(int(group)):
return True
else:
if grp.getgrnam(group):