{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/25041","labels_url":"https://api.github.com/repos/saltstack/salt/issues/25041/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/25041/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/25041/events","html_url":"https://github.com/saltstack/salt/issues/25041","id":91874740,"number":25041,"title":"REGRESSION: pillar.get of integer fails to render in sls","user":{"login":"wt","id":416255,"avatar_url":"https://avatars.githubusercontent.com/u/416255?v=3","gravatar_id":"","url":"https://api.github.com/users/wt","html_url":"https://github.com/wt","followers_url":"https://api.github.com/users/wt/followers","following_url":"https://api.github.com/users/wt/following{/other_user}","gists_url":"https://api.github.com/users/wt/gists{/gist_id}","starred_url":"https://api.github.com/users/wt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wt/subscriptions","organizations_url":"https://api.github.com/users/wt/orgs","repos_url":"https://api.github.com/users/wt/repos","events_url":"https://api.github.com/users/wt/events{/privacy}","received_events_url":"https://api.github.com/users/wt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Blocker","name":"Blocker","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Critical","name":"Critical","color":"e95800"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P1","name":"P1","color":"2181ee"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Regression","name":"Regression","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-29T18:28:15Z","updated_at":"2015-06-29T19:56:43Z","closed_at":null,"body":"I believe that I am suffering from a regression in 2015.5.2 vs 2015.5.0 on Amazon Linux using the EPEL6 packages.\r\n\r\nI have a pillar that contains an integer value. Let's just use the following pillar for an example:\r\n\r\n    service_id: 3\r\n\r\nI also have a state file that has something like the following state in it:\r\n\r\n    /tmp/aaaa:\r\n      file.managed:\r\n        - contents: {{ salt['pillar.get']('service_id') }}\r\n        - user: root\r\n        - group: root\r\n        - mode: 0755\r\n\r\nWith 2015.5.0, I get the following:\r\n\r\n    # salt-call state.template blah.sls \r\n    [INFO    ] Loading fresh modules for state activity\r\n    ...\r\n    [INFO    ] Running state [/tmp/aaaa] at time 18:16:33.488476\r\n    [INFO    ] Executing state file.managed for /tmp/aaaa\r\n    [INFO    ] File changed:\r\n    New file\r\n    [INFO    ] Completed state [/tmp/aaaa] at time 18:16:33.491319\r\n    local:\r\n    ----------\r\n              ID: /tmp/aaaa\r\n        Function: file.managed\r\n          Result: True\r\n         Comment: File /tmp/aaaa updated\r\n         Started: 18:16:33.488476\r\n        Duration: 2.843 ms\r\n         Changes:   \r\n                  ----------\r\n                  diff:\r\n                      New file\r\n                  mode:\r\n                      0755\r\n\r\n    Summary\r\n    ------------\r\n    Succeeded: 1 (changed=1)\r\n    Failed:    0\r\n    ------------\r\n    Total states run:     1\r\n\r\nWith 2015.5.2:\r\n\r\n    [INFO    ] Loading fresh modules for state activity\r\n    ...\r\n    [INFO    ] Running state [/tmp/aaaa] at time 18:13:43.370206\r\n    [INFO    ] Executing state file.managed for /tmp/aaaa\r\n    [ERROR   ] \"contents\" is not a string or list of strings\r\n    [INFO    ] Completed state [/tmp/aaaa] at time 18:13:43.371312\r\n    local:\r\n    ----------\r\n              ID: /tmp/aaaa\r\n        Function: file.managed\r\n          Result: False\r\n         Comment: \"contents\" is not a string or list of strings\r\n         Started: 18:13:43.370206\r\n        Duration: 1.106 ms\r\n         Changes:   \r\n    \r\n    Summary\r\n    ------------\r\n    Succeeded: 0\r\n    Failed:    1\r\n    ------------\r\n    Total states run:     1"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/116817860","html_url":"https://github.com/saltstack/salt/issues/25041#issuecomment-116817860","issue_url":"https://api.github.com/repos/saltstack/salt/issues/25041","id":116817860,"user":{"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},"created_at":"2015-06-29T19:56:43Z","updated_at":"2015-06-29T19:56:43Z","body":"Thanks @wt this is a serious regression and we will make sure to add tests for this case as well"}}