diff options
author | Jérémie Astori <jeremie@astori.fr> | 2015-08-19 00:26:04 +0000 |
---|---|---|
committer | Jérémie Astori <jeremie@astori.fr> | 2015-08-19 00:26:04 +0000 |
commit | 3ac990556d5ccf9c9d5e8e3c5e1ff41cbbb726f6 (patch) | |
tree | af59b5979447d713677598940f25587067be4c2b | |
parent | 421d3f12cf37f601943da12ea44ec941bb4ef9f6 (diff) | |
download | ansible-modules-core-3ac990556d5ccf9c9d5e8e3c5e1ff41cbbb726f6.tar.gz |
Fix wrong expectation regarding entry format in acl module
-rw-r--r-- | files/acl.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/acl.py b/files/acl.py index 64cc2281..7d1b96b9 100644 --- a/files/acl.py +++ b/files/acl.py @@ -276,10 +276,10 @@ def main(): if etype or entity or permissions: module.fail_json(msg="'entry' MUST NOT be set when 'entity', 'etype' or 'permissions' are set.") - if state == 'present' and entry.count(":") != 3: + if state == 'present' and entry.count(":") != 2: module.fail_json(msg="'entry' MUST have 3 sections divided by ':' when 'state=present'.") - if state == 'absent' and entry.count(":") != 2: + if state == 'absent' and entry.count(":") != 1: module.fail_json(msg="'entry' MUST have 2 sections divided by ':' when 'state=absent'.") default, etype, entity, permissions = split_entry(entry) |