You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/docs/docsite/rst
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
6 years ago
..
community Fix broken links. (#42323) 6 years ago
dev_guide Allow documentation of module options type (#42285) 6 years ago
installation_guide [stable-2.6] ignore ansible.cfg in world writable cwd (#42070) 6 years ago
inventory draft implicit localhost docs (#31840) 7 years ago
network reinstates connection:local as an option for nxapi (#40834) (#40916) 7 years ago
plugins corrected version added 7 years ago
porting_guides Backport #42013 for 2.6 - linenfile empty regexp warning (#42204) 6 years ago
reference_appendices Fix broken links. (#42323) 6 years ago
roadmap Update 2.6 roadmap schedule. 7 years ago
scenario_guides Fix some broken links (#42079) 7 years ago
user_guide Fix broken links. (#42323) 6 years ago
vmware Fix some broken links (#42079) 7 years ago
conf.py Adding support for opensearch of documentation (#38593) 7 years ago
index.rst Adds documentation structure and stubs for new VMWare guide (#39246) 7 years ago