community.general/lib/ansible/modules/files
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
..
__init__.py
acl.py Add nomask option to the acl module (#39810) 2018-06-13 15:08:00 -04:00
archive.py archive: Add support for xz (#34110) 2018-01-22 07:33:07 -05:00
assemble.py Temporarily revert c119d54 2018-06-15 13:00:54 -07:00
blockinfile.py Temporarily revert c119d54 2018-06-15 13:00:54 -07:00
copy.py Fix #38745 - set user/group on temp file (#38748) 2018-05-23 15:45:43 -05:00
fetch.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
file.py Fix file module with check_mode - Fixes #42111 (#42115) 2018-06-29 11:19:34 -07:00
find.py Optimize file handling in the find module (#38192) 2018-04-10 09:01:44 -07:00
ini_file.py doc: add name to tasks in ini_file module examples (#38888) 2018-05-30 02:02:48 +02:00
iso_extract.py
lineinfile.py Add warning when using an empty regexp in lineinfile (#42013) 2018-06-29 17:15:43 -07:00
patch.py add state parameter to patch module (#33692) 2018-05-12 04:58:12 -04:00
replace.py Temporarily revert c119d54 2018-06-15 13:00:54 -07:00
stat.py change OS X to macOS (#41294) 2018-06-26 14:09:23 -04:00
synchronize.py Group logic detecting user, ensure rsync_opts is a list if omitted. Fixes #40483 2018-05-22 11:00:54 -04:00
tempfile.py tempfile: PEP8 compliancy, pylint and docs (#30859) 2017-10-30 00:51:19 +01:00
template.py update docs of template module (#40312) 2018-05-24 22:48:12 -05:00
unarchive.py Fix: wildcard excludes in unarchive with tar archives (#40935) 2018-06-22 08:28:14 -07:00
xattr.py Remove deprecated get_exception API 2018-02-05 23:39:56 -05:00
xml.py xml: Fix validate-modules issue (#40121) 2018-05-15 02:29:48 +02:00