mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00: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:
committed by
Toshio Kuratomi
parent
806da6e7c7
commit
6a57ad34c0
@@ -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
|
||||
========== ============ =========================================================================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user