{"action":"created","issue":{"url":"https://api.github.com/repos/ansible-network/network-engine/issues/154","repository_url":"https://api.github.com/repos/ansible-network/network-engine","labels_url":"https://api.github.com/repos/ansible-network/network-engine/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/ansible-network/network-engine/issues/154/comments","events_url":"https://api.github.com/repos/ansible-network/network-engine/issues/154/events","html_url":"https://github.com/ansible-network/network-engine/pull/154","id":367441837,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwODc2NjE5","number":154,"title":"Fix native type conversion in json_template","user":{"login":"ganeshrn","id":5292461,"node_id":"MDQ6VXNlcjUyOTI0NjE=","avatar_url":"https://avatars0.githubusercontent.com/u/5292461?v=4","gravatar_id":"","url":"https://api.github.com/users/ganeshrn","html_url":"https://github.com/ganeshrn","followers_url":"https://api.github.com/users/ganeshrn/followers","following_url":"https://api.github.com/users/ganeshrn/following{/other_user}","gists_url":"https://api.github.com/users/ganeshrn/gists{/gist_id}","starred_url":"https://api.github.com/users/ganeshrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganeshrn/subscriptions","organizations_url":"https://api.github.com/users/ganeshrn/orgs","repos_url":"https://api.github.com/users/ganeshrn/repos","events_url":"https://api.github.com/users/ganeshrn/events{/privacy}","received_events_url":"https://api.github.com/users/ganeshrn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-06T09:49:20Z","updated_at":"2018-10-08T12:12:21Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/ansible-network/network-engine/pulls/154","html_url":"https://github.com/ansible-network/network-engine/pull/154","diff_url":"https://github.com/ansible-network/network-engine/pull/154.diff","patch_url":"https://github.com/ansible-network/network-engine/pull/154.patch"},"body":"Fixes #151 \r\n\r\n*  The current `json_template` implementation tries to convert the value to int irrespective to the \r\n    actual type of data.\r\n\r\n*  Ansible version 2.7 onwards supports native jinja2 types conversion. Refer https://github.com/ansible-network/network-engine/issues/151#issuecomment-427561789\r\n   `eg: value: \"{{ item.name.acl_name|float }}\"`\r\n   \r\n*  To convert to native jinja2 type by default need to set `jinja2_native` config varaible in `defaults` \r\n    section of active Ansible config file.\r\n  \r\n`Note: This feature require jinja2 version to be >= 2.10`"},"comment":{"url":"https://api.github.com/repos/ansible-network/network-engine/issues/comments/427809765","html_url":"https://github.com/ansible-network/network-engine/pull/154#issuecomment-427809765","issue_url":"https://api.github.com/repos/ansible-network/network-engine/issues/154","id":427809765,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzgwOTc2NQ==","user":{"login":"trishnaguha","id":13337039,"node_id":"MDQ6VXNlcjEzMzM3MDM5","avatar_url":"https://avatars2.githubusercontent.com/u/13337039?v=4","gravatar_id":"","url":"https://api.github.com/users/trishnaguha","html_url":"https://github.com/trishnaguha","followers_url":"https://api.github.com/users/trishnaguha/followers","following_url":"https://api.github.com/users/trishnaguha/following{/other_user}","gists_url":"https://api.github.com/users/trishnaguha/gists{/gist_id}","starred_url":"https://api.github.com/users/trishnaguha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trishnaguha/subscriptions","organizations_url":"https://api.github.com/users/trishnaguha/orgs","repos_url":"https://api.github.com/users/trishnaguha/repos","events_url":"https://api.github.com/users/trishnaguha/events{/privacy}","received_events_url":"https://api.github.com/users/trishnaguha/received_events","type":"User","site_admin":false},"created_at":"2018-10-08T12:12:21Z","updated_at":"2018-10-08T12:12:21Z","author_association":"MEMBER","body":"@ganeshrn We need to put this in Doc that this feature is only supported with Ansible 2.7 and network-engine 2.7.0 and requires jinja2 version to be >= 2.10"}}
{"actor":{"display_login":"trishnaguha"}}