keep string type filters as strings

now we don't try to convert types if using a filter that outputs a specifically formated string
made list of filters configurable
This commit is contained in:
Brian Coca 2015-11-12 18:42:39 -08:00
parent 0e55398e16
commit 021605a195
2 changed files with 6 additions and 4 deletions

View file

@ -261,6 +261,7 @@ GALAXY_SCMS = get_config(p, 'galaxy', 'scms', 'ANSIBLE_GALAXY
# characters included in auto-generated passwords
DEFAULT_PASSWORD_CHARS = ascii_letters + digits + ".,:-_"
STRING_TYPE_FILTERS = get_config(p, 'jinja2', 'dont_type_filters', 'ANSIBLE_STRING_TYPE_FILTERS', ['string', 'to_json', 'to_nice_json', 'to_yaml', 'ppretty', 'json'], islist=True )
# non-configurable things
MODULE_REQUIRE_ARGS = ['command', 'shell', 'raw', 'script']