mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Py3 compatibility
This commit is contained in:
parent
7b27074ed6
commit
25f52348c9
@ -59,7 +59,7 @@ def present(name, acl_type, acl_name='', perms='', recurse=False):
|
|||||||
|
|
||||||
if _current_perms[name].get(acl_type, None):
|
if _current_perms[name].get(acl_type, None):
|
||||||
try:
|
try:
|
||||||
user = [i for i in _current_perms[name][acl_type] if i.keys()[0] == acl_name].pop()
|
user = [i for i in _current_perms[name][acl_type] if next(six.iterkeys(i)) == acl_name].pop()
|
||||||
except (AttributeError, IndexError):
|
except (AttributeError, IndexError):
|
||||||
user = None
|
user = None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user