From 3ad67d93ea3602d4db3f0395ba3bb5bc3a9af313 Mon Sep 17 00:00:00 2001 From: quoing Date: Tue, 8 Dec 2015 13:04:21 +0100 Subject: [PATCH] Fix: Default ACL parameters are not correctly handled --- lib/ansible/modules/files/acl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/files/acl.py b/lib/ansible/modules/files/acl.py index 8d0807e7430..a3997cd495d 100644 --- a/lib/ansible/modules/files/acl.py +++ b/lib/ansible/modules/files/acl.py @@ -183,9 +183,9 @@ def build_command(module, mode, path, follow, default, recursive, entry=''): if default: if(mode == 'rm'): - cmd.append('-k') + cmd.insert(1, '-k') else: # mode == 'set' or mode == 'get' - cmd.append('-d') + cmd.insert(1, '-d') cmd.append(path) return cmd