From 945ac7221799fcc0a81af73f97d7cbba9c29c41a Mon Sep 17 00:00:00 2001 From: Alexandre Garnier Date: Tue, 23 Aug 2016 15:03:27 +0200 Subject: [PATCH] Really fix python 2.4 compatibility PR #1544 didn't remove the keyword argument 'delete' not existing in `tempfile.NamedTemporaryFile()` in python 2.4 --- lib/ansible/modules/extras/system/pam_limits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/system/pam_limits.py b/lib/ansible/modules/extras/system/pam_limits.py index d113781890e..544455c7d21 100644 --- a/lib/ansible/modules/extras/system/pam_limits.py +++ b/lib/ansible/modules/extras/system/pam_limits.py @@ -152,7 +152,7 @@ def main(): message = '' f = open (limits_conf, 'r') # Tempfile - nf = tempfile.NamedTemporaryFile(delete = False) + nf = tempfile.NamedTemporaryFile() found = False new_value = value