# Backport of blockinfile/diff bug fix to 2.3.x?

**URL:** <https://forum.ansible.com/t/backport-of-blockinfile-diff-bug-fix-to-2-3-x/26520>\
**Category:** Ansible Developer\
**Created:** [January 19, 2018, 8:20pm UTC](https://forum.ansible.com/t/backport-of-blockinfile-diff-bug-fix-to-2-3-x/26520 "2018-01-19T20:20:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael4](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Michael4](https://forum.ansible.com/u/Michael4)\
**Post date:** [January 19, 2018, 8:20pm UTC](https://forum.ansible.com/t/backport-of-blockinfile-diff-bug-fix-to-2-3-x/26520/1 "2018-01-19T20:20:59Z")

</div>

Hi,

I was wondering if the bug that was fixed mid-last-year to make “–diff” work correctly with blockinfile can be backported to 2.3.x? It is in 2.4.x but I can’t upgrade to 2.4.x yet because it dropped support for Python 2.4 servers, and I still have ~35 RHEL5 systems that I need to support – probably until the end of this calendar year. Using a 3rd-party Python doesn’t really work with a lot of things like Yum. I use blockinfile a lot, but makes me nervous to always push-out changes without being able to see what will actually change in a dry run first in check mode.

This is the bug:  
[https://github.com/ansible/ansible/issues/23198](https://github.com/ansible/ansible/issues/23198)

Thanks,

michael
