From 186cc7cb17a0afaef62ea28b4f542b22c90b6c53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Thu, 20 Aug 2015 22:43:15 +0000 Subject: [PATCH] Make sure entry is not sent when acl state=query --- lib/ansible/modules/files/acl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/files/acl.py b/lib/ansible/modules/files/acl.py index 58550c19124..06fd304e361 100644 --- a/lib/ansible/modules/files/acl.py +++ b/lib/ansible/modules/files/acl.py @@ -275,6 +275,9 @@ def main(): if state == 'absent' and entry.count(":") != 1: module.fail_json(msg="'entry' MUST have 2 sections divided by ':' when 'state=absent'.") + if state == 'query': + module.fail_json(msg="'entry' MUST NOT be set when 'state=query'.") + etype, entity, permissions = split_entry(entry) changed = False