{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/24775","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/24775/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/24775/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/24775/events","html_url":"https://github.com/saltstack/salt/issues/24775","id":89231988,"number":24775,"title":"jinja returned host ip address with square bracket","user":{"login":"ymote","id":151983,"avatar_url":"https://avatars.githubusercontent.com/u/151983?v=3","gravatar_id":"","url":"https://api.github.com/users/ymote","html_url":"https://github.com/ymote","followers_url":"https://api.github.com/users/ymote/followers","following_url":"https://api.github.com/users/ymote/following{/other_user}","gists_url":"https://api.github.com/users/ymote/gists{/gist_id}","starred_url":"https://api.github.com/users/ymote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ymote/subscriptions","organizations_url":"https://api.github.com/users/ymote/orgs","repos_url":"https://api.github.com/users/ymote/repos","events_url":"https://api.github.com/users/ymote/events{/privacy}","received_events_url":"https://api.github.com/users/ymote/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Documentation","name":"Documentation","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Grains","name":"Grains","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars.githubusercontent.com/u/507599?v=3","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":3040,"closed_issues":3650,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2016-05-19T21:05:11Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-06-18T08:27:08Z","updated_at":"2016-05-19T21:05:12Z","closed_at":"2016-05-19T21:05:11Z","body":"HI\r\n\r\nI tried to use jinja script to get the minion host IP address but the returned IP address has a square bracket which is not convenient for my use case. Is there any way to get ride of the bracket?\r\n\r\nI tried to setup a docker environment with the following jinja script\r\n`      - \"HOST_IP\": {{ salt['grains.get']('ip_interfaces:eth0') }}`\r\n\r\nWhat I got is the IP address with the square bracket. What I really want is just the IP address with quote.\r\n\r\n`HOST_IP=['10.10.1.46']`, which is not recognizable by the docker command line\r\n\r\nWhat I expect is `HOST_IP=10.10.1.46`,\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/220451892","html_url":"https://github.com/saltstack/salt/issues/24775#issuecomment-220451892","issue_url":"https://api.github.com/repos/saltstack/salt/issues/24775","id":220451892,"user":{"login":"rallytime","id":6547906,"avatar_url":"https://avatars.githubusercontent.com/u/6547906?v=3","gravatar_id":"","url":"https://api.github.com/users/rallytime","html_url":"https://github.com/rallytime","followers_url":"https://api.github.com/users/rallytime/followers","following_url":"https://api.github.com/users/rallytime/following{/other_user}","gists_url":"https://api.github.com/users/rallytime/gists{/gist_id}","starred_url":"https://api.github.com/users/rallytime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rallytime/subscriptions","organizations_url":"https://api.github.com/users/rallytime/orgs","repos_url":"https://api.github.com/users/rallytime/repos","events_url":"https://api.github.com/users/rallytime/events{/privacy}","received_events_url":"https://api.github.com/users/rallytime/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T21:05:11Z","updated_at":"2016-05-19T21:05:11Z","body":"Fixed via #28457"}}