{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/27973","labels_url":"https://api.github.com/repos/saltstack/salt/issues/27973/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/27973/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/27973/events","html_url":"https://github.com/saltstack/salt/issues/27973","id":111572861,"number":27973,"title":"file.managed replaced text file with binary file","user":{"login":"srkunze","id":1389648,"avatar_url":"https://avatars.githubusercontent.com/u/1389648?v=3","gravatar_id":"","url":"https://api.github.com/users/srkunze","html_url":"https://github.com/srkunze","followers_url":"https://api.github.com/users/srkunze/followers","following_url":"https://api.github.com/users/srkunze/following{/other_user}","gists_url":"https://api.github.com/users/srkunze/gists{/gist_id}","starred_url":"https://api.github.com/users/srkunze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srkunze/subscriptions","organizations_url":"https://api.github.com/users/srkunze/orgs","repos_url":"https://api.github.com/users/srkunze/repos","events_url":"https://api.github.com/users/srkunze/events{/privacy}","received_events_url":"https://api.github.com/users/srkunze/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Info%20Needed","name":"Info Needed","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/37","html_url":"https://github.com/saltstack/salt/milestones/Blocked","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/37/labels","id":343741,"number":37,"title":"Blocked","description":"Issues which are blocked in some way, whether they need further discussion, clarification, justification, or are blocked for some other reason.","creator":{"login":"basepi","id":702318,"avatar_url":"https://avatars.githubusercontent.com/u/702318?v=3","gravatar_id":"","url":"https://api.github.com/users/basepi","html_url":"https://github.com/basepi","followers_url":"https://api.github.com/users/basepi/followers","following_url":"https://api.github.com/users/basepi/following{/other_user}","gists_url":"https://api.github.com/users/basepi/gists{/gist_id}","starred_url":"https://api.github.com/users/basepi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basepi/subscriptions","organizations_url":"https://api.github.com/users/basepi/orgs","repos_url":"https://api.github.com/users/basepi/repos","events_url":"https://api.github.com/users/basepi/events{/privacy}","received_events_url":"https://api.github.com/users/basepi/received_events","type":"User","site_admin":false},"open_issues":305,"closed_issues":659,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2015-10-15T21:06:13Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-10-15T08:59:34Z","updated_at":"2015-10-15T21:07:50Z","closed_at":null,"body":"Something went totally wrong last night:\r\n\r\n    ----------\r\n              ID: /root/.config/pip/pip.conf\r\n        Function: file.managed\r\n          Result: True\r\n         Comment: File /root/.config/pip/pip.conf updated\r\n         Started: 00:38:47.035172\r\n        Duration: 47.9 ms\r\n         Changes:   \r\n                  ----------\r\n                  diff:\r\n                      Replace text file with binary file\r\n    ----------\r\n\r\nAs you can imagine that makes absolute no sense to replace a text config file with a binary file."},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/148521659","html_url":"https://github.com/saltstack/salt/issues/27973#issuecomment-148521659","issue_url":"https://api.github.com/repos/saltstack/salt/issues/27973","id":148521659,"user":{"login":"jfindlay","id":702905,"avatar_url":"https://avatars.githubusercontent.com/u/702905?v=3","gravatar_id":"","url":"https://api.github.com/users/jfindlay","html_url":"https://github.com/jfindlay","followers_url":"https://api.github.com/users/jfindlay/followers","following_url":"https://api.github.com/users/jfindlay/following{/other_user}","gists_url":"https://api.github.com/users/jfindlay/gists{/gist_id}","starred_url":"https://api.github.com/users/jfindlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfindlay/subscriptions","organizations_url":"https://api.github.com/users/jfindlay/orgs","repos_url":"https://api.github.com/users/jfindlay/repos","events_url":"https://api.github.com/users/jfindlay/events{/privacy}","received_events_url":"https://api.github.com/users/jfindlay/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T21:07:50Z","updated_at":"2015-10-15T21:07:50Z","body":"@srkunze, thanks for the report.  Will you post the version of salt you are using and the state that demonstrates the problem?  Did you verify that the updated file was not what you expected?  Was it replaced by something else by mistake?"}}