From f0a3914f7bf271b20a7bbc8a8aa021472e128679 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 8 Dec 2015 11:38:03 -0800 Subject: [PATCH] simplified lowercasing --- lib/ansible/modules/files/acl.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/files/acl.py b/lib/ansible/modules/files/acl.py index 91687f05eb5..8d0807e7430 100644 --- a/lib/ansible/modules/files/acl.py +++ b/lib/ansible/modules/files/acl.py @@ -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