Adding additional permissions to the lookup.

This commit is contained in:
Gareth J. Greenaway 2019-03-13 17:48:31 -07:00
parent 4b99afa819
commit 24c907be01
No known key found for this signature in database
GPG key ID: 10B62F8A7CAD7A41

View file

@ -63,10 +63,13 @@ def present(name, acl_type, acl_name='', perms='', recurse=False):
'comment': ''}
_octal = {'r': 4, 'w': 2, 'x': 1, '-': 0}
_octal_lookup = {'1': 'x',
_octal_lookup = {'0': '-',
'1': 'x',
'2': 'w',
'3': 'wx',
'4': 'r',
'5': 'rx',
'6': 'rw',
'7': 'rwx'}
if not os.path.exists(name):