-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix native type conversion in json_template (#154)
* Fix native type conversion in json_template Fixes #151 * The current implementation tries to convert the value to int irrespective to the actual desired type of data. * Ansible version 2.7 onwards supports native jinja2 types eg: value: "{{ item.name.acl_name|float }}" To convert to native jinja2 type by default need to set `jinja2_native` config varaible in `defaults` setion within configuration file. Note: this required jinja2 version to be >= 2.10 * Fix CI failure * Update doc * Add example usage in doc
- Loading branch information
1 parent
9fa2e2b
commit a83d5c2
Showing
4 changed files
with
32 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters