diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2018-05-31 14:40:11 -0400 |
---|---|---|
committer | Brian Coca <bcoca@users.noreply.github.com> | 2018-06-01 12:28:30 -0400 |
commit | c86fd6e2df1ecd3f830ba75f3b2010fd32fe3f46 (patch) | |
tree | 0b5a142d60e294ea2d24bcbce20af12b05bc1cfb /lib/ansible/constants.py | |
parent | c1400ce9091a6fcf2c2db465b5c1fbd01cce9447 (diff) | |
download | ansible-c86fd6e2df1ecd3f830ba75f3b2010fd32fe3f46.tar.gz |
Fix error reporting on bad type for config setting
Diffstat (limited to 'lib/ansible/constants.py')
-rw-r--r-- | lib/ansible/constants.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ansible/constants.py b/lib/ansible/constants.py index e922b506e0..3db9665423 100644 --- a/lib/ansible/constants.py +++ b/lib/ansible/constants.py @@ -185,6 +185,7 @@ for setting in config.data.get_settings(): pass # not a python data structure except: pass # not templatable - value = ensure_type(value, setting.name) + + value = ensure_type(value, setting.type) set_constant(setting.name, value) |