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:21:15 -0700 |
commit | 2123ed44e4b51061cf2b534d275796bbb3745470 (patch) | |
tree | 5efe1474c7fc11c3ce490b3ee48b6ae15742a990 | |
parent | afbcbf81b776fbcc3761846342add10c8c00b87b (diff) | |
download | ansible-2123ed44e4b51061cf2b534d275796bbb3745470.tar.gz |
fixed 'typing' for deprecated get_config
(cherry picked from commit 7a12314d5413cb911a91490f8e6d9d358b055022)
-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 |