diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2017-09-14 14:01:48 -0400 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2017-09-14 13:20:55 -0700 |
commit | 7a12314d5413cb911a91490f8e6d9d358b055022 (patch) | |
tree | 8955a2ea76a42fe9fa7ba3af41b601261b3b4982 /lib/ansible/constants.py | |
parent | 8c3bf20a13a185e7c5c4bd0dee1bbe0b1ec2eab3 (diff) | |
download | ansible-7a12314d5413cb911a91490f8e6d9d358b055022.tar.gz |
fixed 'typing' for deprecated get_config
Diffstat (limited to 'lib/ansible/constants.py')
-rw-r--r-- | lib/ansible/constants.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/ansible/constants.py b/lib/ansible/constants.py index 36630c5629..1e5445372f 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 |