From c987dbcb673a2eb4073026f425c1749e5bc21b47 Mon Sep 17 00:00:00 2001 From: Piffey Parlance Date: Sat, 9 Aug 2014 12:02:24 -0500 Subject: [PATCH] Issue 8502: Fixed bug where failed when permissions weren't specified. --- files/acl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/acl b/files/acl index d03abd7ef55..24cd6608033 100644 --- a/files/acl +++ b/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!")