mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Make sure entry is not sent when acl state=query
This commit is contained in:
parent
3568f1cd78
commit
186cc7cb17
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue