diff --git a/lib/ansible/constants.py b/lib/ansible/constants.py index 36630c5629d..1e5445372f7 100644 --- a/lib/ansible/constants.py +++ b/lib/ansible/constants.py @@ -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