1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test
Sam Doran 4b5b4a760c
Account for empty string regexp in lineinfile (#41451)
* Use context managers for interacting with files

* Account for empty string as regexp

Rather than explicitly testing for None, also test for an empty string which will evaluate to False. An empty string regexp matches every line, which ends up replacing the incorrect line.

* Store line parameter in a variable

* Add tests
2018-06-25 17:57:05 -04:00
..
cache Update ansible-test sanity command. (#31958) 2017-10-26 00:21:46 -07:00
integration Account for empty string regexp in lineinfile (#41451) 2018-06-25 17:57:05 -04:00
legacy Revert "Revert "Remove VC scaleway (#40791)" (#41401)" (#41402) 2018-06-11 11:22:12 -05:00
results Collect data from integration test runs. (#28650) 2017-08-25 18:14:47 -04:00
runner reappied changes in a new pr (#41228) 2018-06-13 15:42:29 +08:00
sanity Add shell out checks (#41545) 2018-06-21 11:58:39 -04:00
units Stop displaying kinit pass input on a failure (#41882) 2018-06-26 05:49:19 +10:00
utils Make docs-build sanity test disabled by default. 2018-05-09 17:55:00 -07:00