From 877daf970d37cb7716ac6bb9351a579548fe54aa 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 --- files/acl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/acl.py b/files/acl.py index 8d0807e7430..a3997cd495d 100644 --- a/files/acl.py +++ b/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