summaryrefslogtreecommitdiffstats
path: root/changelogs
diff options
context:
space:
mode:
authorSam Doran <sdoran@redhat.com>2020-05-27 22:54:38 +0200
committerGitHub <noreply@github.com>2020-05-27 22:54:38 +0200
commitd7618712fd13804de07dacf06c64e7ac34c395fc (patch)
tree96d7fb2ae3b7d2f02dc2ccc771018f46e3164d9a /changelogs
parentUpdate default-test-container to version 1.14. (diff)
downloadansible-d7618712fd13804de07dacf06c64e7ac34c395fc.tar.xz
ansible-d7618712fd13804de07dacf06c64e7ac34c395fc.zip
blockinfile - fix line end regression (#69734)
PR #66461 introduced a regression that resulted in an in correct block in the file if the block to be inserted did not end with a line separator. Fix this bug and add tests to cover this scenario.
Diffstat (limited to 'changelogs')
-rw-r--r--changelogs/fragments/blockinfile-line-ending-fix.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/changelogs/fragments/blockinfile-line-ending-fix.yaml b/changelogs/fragments/blockinfile-line-ending-fix.yaml
new file mode 100644
index 0000000000..57c680cf7e
--- /dev/null
+++ b/changelogs/fragments/blockinfile-line-ending-fix.yaml
@@ -0,0 +1,4 @@
+bugfixes:
+ - >
+ blockinfile - fix regression that results in incorrect block in file when the
+ block to be inserted does not end in a line separator (https://github.com/ansible/ansible/pull/69734)