ansible/docs
Sam Doran 3bec68a3b3 Backport #42013 for 2.6 - linenfile empty regexp warning (#42204)
* Add warning when using an empty regexp in lineinfile (#42013)

* Revert "Account for empty string regexp in lineinfile (#41451)"

This reverts commit 4b5b4a760c.

* Use context managers for interacting with files

* Store line and regexp parameters in a variable

* Add warning when regexp is an empty string

* Remove '=' from error messages

* Update warning message and add changelog

* Add tests

* Improve warning message

Offer an equivalent regexp that won't trigger the warning.
Update tests to match new warning.

* Add porting guide entry for lineinfile change

# Conflicts:
#	docs/docsite/rst/porting_guides/porting_guide_2.7.rst
#	lib/ansible/modules/files/lineinfile.py
#	test/integration/targets/lineinfile/tasks/main.yml

* Add porting guide info
2018-07-09 11:26:45 -07:00
..
api docs: PEP8 compliance (#24681) 2017-05-30 18:08:25 +01:00
bin [stable-2.6] Changes to support building docs with old jinja2 2018-06-26 13:43:06 -07:00
docsite Backport #42013 for 2.6 - linenfile empty regexp warning (#42204) 2018-07-09 11:26:45 -07:00
man added docs to CLI docstringsadded 2017-03-24 15:52:36 -04:00
templates [stable-2.6] ignore ansible.cfg in world writable cwd (#42070) 2018-07-03 15:19:59 -07:00