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

remove UID/GID from output

This commit is contained in:
Derek Carter 2012-07-01 17:38:17 -04:00
parent a548769792
commit fc4ae3e270

View file

@ -187,11 +187,11 @@ def user_and_group(filename):
try:
user = pwd.getpwuid(uid)[0]
except KeyError:
user = 'UID' + str(uid)
user = str(uid)
try:
group = grp.getgrgid(gid)[0]
except KeyError:
group = 'GID' + str(gid)
group = str(gid)
return (user, group)
def set_context_if_different(path, context, changed):