mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
Make sure permission-less entries are accepted when state=absent
Also, remove that try condition as, at that stage, no permissions with other than 2 or 3 fields are sent to the function.
This commit is contained in:
parent
a93445c798
commit
3568f1cd78
1 changed files with 4 additions and 6 deletions
|
@ -127,12 +127,10 @@ def split_entry(entry):
|
||||||
''' splits entry and ensures normalized return'''
|
''' splits entry and ensures normalized return'''
|
||||||
|
|
||||||
a = entry.split(':')
|
a = entry.split(':')
|
||||||
a.reverse()
|
if len(a) == 2:
|
||||||
try:
|
a.append(None)
|
||||||
p, e, t = a
|
|
||||||
except ValueError, e:
|
t, e, p = a
|
||||||
print "wtf?? %s => %s" % (entry, a)
|
|
||||||
raise e
|
|
||||||
|
|
||||||
if t.startswith("u"):
|
if t.startswith("u"):
|
||||||
t = "user"
|
t = "user"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue