1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Whitespace fixes in incompatible param check

- Remove extra whitespace in conditional that checks if etype, entity or
  permissions are also set when entry is set.
This commit is contained in:
Ali Asad Lotia 2014-03-16 17:49:36 +00:00
parent 9180013682
commit 4a006a78b3

View file

@ -221,7 +221,7 @@ def main():
module.fail_json(msg="%s requires either etype and permissions or just entry be set" % state) module.fail_json(msg="%s requires either etype and permissions or just entry be set" % state)
if entry: if entry:
if etype or entity or permissions: if etype or entity or permissions:
module.fail_json(msg="entry and another incompatible field (entity, etype or permissions) are also set") module.fail_json(msg="entry and another incompatible field (entity, etype or permissions) are also set")
if entry.count(":") not in [2,3]: if entry.count(":") not in [2,3]:
module.fail_json(msg="Invalid entry: '%s', it requires 3 or 4 sections divided by ':'" % entry) module.fail_json(msg="Invalid entry: '%s', it requires 3 or 4 sections divided by ':'" % entry)