mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix 4d355f8bf2
default values can contain nonstrings and those should not be converted via to_text.
This commit is contained in:
parent
91242b8cc3
commit
f129977e2b
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ def _get_config(p, section, key, env_var, default):
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return to_text(value, errors='surrogate_or_strict')
|
return to_text(value, errors='surrogate_or_strict', nonstring='passthru')
|
||||||
|
|
||||||
|
|
||||||
def load_config_file():
|
def load_config_file():
|
||||||
|
|
Loading…
Reference in a new issue