mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 07:31:23 -07:00
simplified lowercasing
This commit is contained in:
parent
3a91853e7e
commit
f0a3914f7b
1 changed files with 5 additions and 4 deletions
|
@ -137,14 +137,15 @@ def split_entry(entry):
|
||||||
a.append(None)
|
a.append(None)
|
||||||
|
|
||||||
t, e, p = a
|
t, e, p = a
|
||||||
|
t = t.lower()
|
||||||
|
|
||||||
if t.lower().startswith("u"):
|
if t.startswith("u"):
|
||||||
t = "user"
|
t = "user"
|
||||||
elif t.lower().startswith("g"):
|
elif t.startswith("g"):
|
||||||
t = "group"
|
t = "group"
|
||||||
elif t.lower().startswith("m"):
|
elif t.startswith("m"):
|
||||||
t = "mask"
|
t = "mask"
|
||||||
elif t.lower().startswith("o"):
|
elif t.startswith("o"):
|
||||||
t = "other"
|
t = "other"
|
||||||
else:
|
else:
|
||||||
t = None
|
t = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue