diff --git a/library/files/acl b/library/files/acl index d03abd7ef5..24cd660803 100644 --- a/library/files/acl +++ b/library/files/acl @@ -211,11 +211,14 @@ def main(): entry = module.params.get('entry') entity = module.params.get('entity') etype = module.params.get('etype') - permissions = normalize_permissions(module.params.get('permissions')) + permissions = module.params.get('permissions') state = module.params.get('state') follow = module.params.get('follow') default = module.params.get('default') + if permissions: + permissions = normalize_permissions(permissions) + if not os.path.exists(path): module.fail_json(msg="path not found or not accessible!")