mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
Allow ini plugin to load file using other encoding than utf8.
- New option for ini plugins: encoding - Add a new option encoding to _get_file_contents - Use replace option in test/runner/lib/util.py when calling decode on stdout/err output when diff have non-utf8 sequences
This commit is contained in:
parent
806da6e7c7
commit
6a57ad34c0
9 changed files with 78 additions and 35 deletions
|
@ -253,6 +253,7 @@ type ini Type of the file. Can be ini or properties (for java
|
|||
file ansible.ini Name of the file to load
|
||||
section global Default section where to lookup for key.
|
||||
re False The key is a regexp.
|
||||
encoding utf-8 Text encoding to use.
|
||||
default empty string return value if the key is not in the ini file
|
||||
========== ============ =========================================================================================
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue