mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 16:23:10 +00:00
simplified lowercasing
This commit is contained in:
@@ -137,14 +137,15 @@ def split_entry(entry):
|
||||
a.append(None)
|
||||
|
||||
t, e, p = a
|
||||
t = t.lower()
|
||||
|
||||
if t.lower().startswith("u"):
|
||||
if t.startswith("u"):
|
||||
t = "user"
|
||||
elif t.lower().startswith("g"):
|
||||
elif t.startswith("g"):
|
||||
t = "group"
|
||||
elif t.lower().startswith("m"):
|
||||
elif t.startswith("m"):
|
||||
t = "mask"
|
||||
elif t.lower().startswith("o"):
|
||||
elif t.startswith("o"):
|
||||
t = "other"
|
||||
else:
|
||||
t = None
|
||||
|
||||
Reference in New Issue
Block a user