1
0
Fork 0
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:
Brian Coca 2017-09-14 14:01:48 -04:00 committed by Toshio Kuratomi
parent 8c3bf20a13
commit 7a12314d54

View file

@ -45,10 +45,8 @@ def get_config(parser, section, key, env_var, default_value, value_type=None, ex
pass pass
if value is None: if value is None:
value = default_value value = default_value
try:
value = config.ensure_type(value, value_type) value = ensure_type(value, value_type)
except:
pass
return value return value