ansible/docs/docsite/rst/porting_guides
Sam Doran fb55038d75 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
2018-06-29 17:15:43 -07:00
..
porting_guide_2.0.rst updates docs links to changelogs for all versions (#41289) 2018-06-28 13:09:22 -07:00
porting_guide_2.3.rst updates docs links to changelogs for all versions (#41289) 2018-06-28 13:09:22 -07:00
porting_guide_2.4.rst updates docs links to changelogs for all versions (#41289) 2018-06-28 13:09:22 -07:00
porting_guide_2.5.rst updates docs links to changelogs for all versions (#41289) 2018-06-28 13:09:22 -07:00
porting_guide_2.6.rst updates docs links to changelogs for all versions (#41289) 2018-06-28 13:09:22 -07:00
porting_guide_2.7.rst Add warning when using an empty regexp in lineinfile (#42013) 2018-06-29 17:15:43 -07:00
porting_guides.rst Ensure the 2.7 porting guide is in the toc (#41267) 2018-06-07 12:22:23 -05:00