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:
Jérémie Astori 2015-08-20 22:40:15 +00:00 committed by Matt Clay
parent a93445c798
commit 3568f1cd78

View file

@ -127,12 +127,10 @@ def split_entry(entry):
''' splits entry and ensures normalized return'''
a = entry.split(':')
a.reverse()
try:
p, e, t = a
except ValueError, e:
print "wtf?? %s => %s" % (entry, a)
raise e
if len(a) == 2:
a.append(None)
t, e, p = a
if t.startswith("u"):
t = "user"