Commit e66e4ade by Michael DeHaan

Merge pull request #8532 from piffey/8502_acl

Issue 8502: Fixed bug where failed when permissions weren't specified.
parents 82564df6 cb0b06aa
...@@ -211,11 +211,14 @@ def main(): ...@@ -211,11 +211,14 @@ def main():
entry = module.params.get('entry') entry = module.params.get('entry')
entity = module.params.get('entity') entity = module.params.get('entity')
etype = module.params.get('etype') etype = module.params.get('etype')
permissions = normalize_permissions(module.params.get('permissions')) permissions = module.params.get('permissions')
state = module.params.get('state') state = module.params.get('state')
follow = module.params.get('follow') follow = module.params.get('follow')
default = module.params.get('default') default = module.params.get('default')
if permissions:
permissions = normalize_permissions(permissions)
if not os.path.exists(path): if not os.path.exists(path):
module.fail_json(msg="path not found or not accessible!") module.fail_json(msg="path not found or not accessible!")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment