linux_acl: Allow '-' as a separation character in ACL permissions. Fixes #31270 (#33172)

This allows using acl states with things like '- perms: r-x' or '- perms: r--', which also works when manually setting ACL's using setfacl.
This commit is contained in:
Kevin Alberts 2016-05-16 17:01:09 +02:00 committed by Mike Place
parent d7bd667f79
commit 2f76a2dc34

View File

@ -56,7 +56,7 @@ def present(name, acl_type, acl_name='', perms='', recurse=False):
'changes': {},
'comment': ''}
_octal = {'r': 4, 'w': 2, 'x': 1}
_octal = {'r': 4, 'w': 2, 'x': 1, '-': 0}
__current_perms = __salt__['acl.getfacl'](name)