mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fixed 'typing' for deprecated get_config
This commit is contained in:
parent
8c3bf20a13
commit
7a12314d54
1 changed files with 2 additions and 4 deletions
|
@ -45,10 +45,8 @@ def get_config(parser, section, key, env_var, default_value, value_type=None, ex
|
|||
pass
|
||||
if value is None:
|
||||
value = default_value
|
||||
try:
|
||||
value = config.ensure_type(value, value_type)
|
||||
except:
|
||||
pass
|
||||
|
||||
value = ensure_type(value, value_type)
|
||||
|
||||
return value
|
||||
|
||||
|
|
Loading…
Reference in a new issue