From e8a41d6341ffdf58ecc3b009c3dccc306610086a Mon Sep 17 00:00:00 2001 From: Luitzen van Gorkum Date: Tue, 7 Feb 2017 15:14:52 +0100 Subject: [PATCH] Removes to early content stripping (stripping is allready done when needed with ident:true), fixes #39220 --- salt/modules/file.py | 1 - 1 file changed, 1 deletion(-) diff --git a/salt/modules/file.py b/salt/modules/file.py index a5c0f07ad9..56ea07dfc3 100644 --- a/salt/modules/file.py +++ b/salt/modules/file.py @@ -1598,7 +1598,6 @@ def line(path, content, match=None, mode=None, location=None, elif mode == 'ensure': after = after and after.strip() before = before and before.strip() - content = content and content.strip() if before and after: _assert_occurrence(body, before, 'before')