From 1a13bf06a3b6920c2c99094980bc85ae53e661cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Sat, 1 Dec 2018 22:08:28 +0100 Subject: [PATCH] Fix comment to reflect what the code does (cherry picked from commit 150f5cb232f10e38509823cb5864a9fd800b6df5) --- 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 746f163b2af..059092f42aa 100644 --- a/lib/ansible/modules/files/lineinfile.py +++ b/lib/ansible/modules/files/lineinfile.py @@ -298,7 +298,7 @@ def present(module, dest, regexp, line, insertafter, insertbefore, create, msg = '' changed = False b_linesep = to_bytes(os.linesep, errors='surrogate_or_strict') - # Regexp matched a line in the file + # Exact line or Regexp matched a line in the file if index[0] != -1: if backrefs: b_new_line = m.expand(b_line)