mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-05 13:44:24 -07:00
now prevents option override
This commit is contained in:
parent
cdefeb6d84
commit
cec4d0889b
1 changed files with 2 additions and 2 deletions
|
@ -44,9 +44,9 @@ def get_config(p, section, key, env_var, default, boolean=False, integer=False,
|
||||||
if value:
|
if value:
|
||||||
if integer:
|
if integer:
|
||||||
value = int(value)
|
value = int(value)
|
||||||
if floating:
|
elif floating:
|
||||||
value = float(value)
|
value = float(value)
|
||||||
if islist:
|
elif islist:
|
||||||
if isinstance(value, basestring):
|
if isinstance(value, basestring):
|
||||||
value = [x.strip() for x in value.split(',')]
|
value = [x.strip() for x in value.split(',')]
|
||||||
return value
|
return value
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue