remove UID/GID from output
This commit is contained in:
parent
a548769792
commit
fc4ae3e270
1 changed files with 2 additions and 2 deletions
|
@ -187,11 +187,11 @@ def user_and_group(filename):
|
||||||
try:
|
try:
|
||||||
user = pwd.getpwuid(uid)[0]
|
user = pwd.getpwuid(uid)[0]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
user = 'UID' + str(uid)
|
user = str(uid)
|
||||||
try:
|
try:
|
||||||
group = grp.getgrgid(gid)[0]
|
group = grp.getgrgid(gid)[0]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
group = 'GID' + str(gid)
|
group = str(gid)
|
||||||
return (user, group)
|
return (user, group)
|
||||||
|
|
||||||
def set_context_if_different(path, context, changed):
|
def set_context_if_different(path, context, changed):
|
||||||
|
|
Loading…
Reference in a new issue