From 20d7f929be42017c431e7ed82c2984c459d0c2a6 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Sun, 17 May 2015 09:28:14 -0700 Subject: [PATCH] Fix use of codecs.escape_decode() --- lib/ansible/modules/files/lineinfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/files/lineinfile.py b/lib/ansible/modules/files/lineinfile.py index d22b9781f1f..2e358d1a255 100644 --- a/lib/ansible/modules/files/lineinfile.py +++ b/lib/ansible/modules/files/lineinfile.py @@ -384,7 +384,7 @@ def main(): line = re.sub(r'(\\[0-9]{1,3})', r'\\\1', line) line = module.safe_eval(line) - line = codecs.escape_decode(line) + line = codecs.escape_decode(line)[0] present(module, dest, params['regexp'], line, ins_aft, ins_bef, create, backup, backrefs)