From 6c298e20c07526f48f6839cd035d5f87326945ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Wed, 19 Aug 2015 00:25:18 +0000 Subject: [PATCH] Fix wrong processing of lines returned by setfacl in test mode --- 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 14851225348..64cc2281d3d 100644 --- a/lib/ansible/modules/files/acl.py +++ b/lib/ansible/modules/files/acl.py @@ -199,8 +199,8 @@ def acl_changed(module, cmd): for line in lines: if not line.endswith('*,*'): - return False - return True + return True + return False def run_acl(module, cmd, check_rc=True):