ansible/changelogs
Sam Doran 0fa56ed65d Add warning when using an empty regexp in lineinfile (#42013) (#42207)
* 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

(cherry picked from commit fb55038d75)
2018-07-05 09:41:07 -07:00
..
fragments Add warning when using an empty regexp in lineinfile (#42013) (#42207) 2018-07-05 09:41:07 -07:00
CHANGELOG-legacy.rst rename versioned CHANGELOGs with dash 2018-02-22 17:32:58 -08:00
CHANGELOG-v2.0.rst sync old changelogs 2018-03-22 16:45:26 -07:00
CHANGELOG-v2.1.rst sync old changelogs 2018-03-22 16:45:26 -07:00
CHANGELOG-v2.2.rst sync old changelogs 2018-03-22 16:45:26 -07:00
CHANGELOG-v2.3.rst sync old changelogs 2018-03-22 16:45:26 -07:00
CHANGELOG-v2.4.rst sync old changelogs 2018-03-22 16:45:26 -07:00
CHANGELOG-v2.5.rst New release v2.5.5 2018-06-14 14:14:39 -07:00
config.yaml reformat multiline bugfix entries 2018-02-21 13:51:40 -08:00