mirror of https://github.com/ansible/ansible.git
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.
0a0dbcf21f
* Add prefix to `origin` when configuration variables come from ini files
Fixes ansible#82387
This change was suggested by @bcoca in
https://github.com/ansible/ansible/pull/82388#discussion_r1424235728 and
https://github.com/ansible/ansible/pull/82388#discussion_r1424249732
When configuration variables come from an ini file, their `origin` is
now set to `ini: <file>`. Similarly, once supported, YAML configuration
files will have their `origin` as `yaml: <file>`.
Consequently, since unquoting configuration strings should happen if and
only if they come from an ini file, this condition boils down to testing
whether their `origin` starts with `ini:`.
* Do not add prefix to `origin` but explicitly pass `origin_ftype`
So as not to rely on a specific format of the `origin` string,
as suggested by @sivel in
https://github.com/ansible/ansible/pull/82388#issuecomment-1881714871
(cherry picked from commit
|
4 weeks ago | |
---|---|---|
.. | ||
_vendor | 2 years ago | |
ansible_test | 2 years ago | |
cli | 1 year ago | |
compat | 2 years ago | |
config | 4 weeks ago | |
errors | 2 years ago | |
executor | 1 month ago | |
galaxy | 11 months ago | |
inventory | 2 years ago | |
inventory_test_data/group_vars | 10 years ago | |
mock | 1 year ago | |
module_utils | 1 year ago | |
modules | 1 year ago | |
parsing | 1 year ago | |
playbook | 6 months ago | |
plugins | 1 month ago | |
regex | 6 years ago | |
template | 2 years ago | |
utils | 6 months ago | |
vars | 1 year ago | |
__init__.py | 8 years ago | |
requirements.txt | 1 year ago | |
test_context.py | 5 years ago | |
test_no_tty.py | 3 years ago |