community.general/lib/ansible
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
..
cli doc fix 2018-06-21 16:30:33 -04:00
compat Enable wildcard import pylint (#35786) 2018-02-06 15:17:49 -08:00
config exclude lookup_terms from config errors (#41740) 2018-06-21 17:50:24 -04:00
errors give hint to users when a file is not found 2018-04-10 17:19:03 -04:00
executor fix minor issues with debug and item labels (#41331) 2018-06-21 16:14:57 -04:00
galaxy Update APB templates (#41559) 2018-06-14 17:05:30 -04:00
inventory added missing raise 2018-06-19 16:21:16 -04:00
module_utils Fix ios and vyos cliconf edit_config return type (#41896) 2018-06-25 15:35:39 +05:30
modules Account for empty string regexp in lineinfile (#41451) 2018-06-25 17:57:05 -04:00
parsing Fix wrong python keyword (followup to #36357) (#41067) 2018-06-07 19:48:07 +05:30
playbook Fix NameError, value was not available in this context leading to a generic unexpected error. Fixes #33275 (#41856) 2018-06-25 15:04:32 -05:00
plugins Don't import password lookup from network filters. Fixes #41874 (#41907) 2018-06-25 15:11:45 -05:00
template When using ANSIBLE_JINJA2_NATIVE bypass our None filtering in _finalze (#41408) 2018-06-12 08:46:23 -05:00
utils Merge various stdout callback plugins into 'default' (#41058) 2018-06-24 23:00:07 -05:00
vars validate vars_files entries are string_type or list (#40985) 2018-06-22 11:13:58 -04:00
__init__.py
constants.py adds ansible-doc JSON plugin data dump 2018-06-04 17:20:33 -07:00
release.py update 2.7 codename 2018-05-31 15:46:07 -07:00