{"action":"closed","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/18998","labels_url":"https://api.github.com/repos/saltstack/salt/issues/18998/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/18998/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/18998/events","html_url":"https://github.com/saltstack/salt/issues/18998","id":52028858,"number":18998,"title":"Permission denied while hosts.present on win32","user":{"login":"mpasternak","id":598469,"avatar_url":"https://avatars.githubusercontent.com/u/598469?v=3","gravatar_id":"","url":"https://api.github.com/users/mpasternak","html_url":"https://github.com/mpasternak","followers_url":"https://api.github.com/users/mpasternak/followers","following_url":"https://api.github.com/users/mpasternak/following{/other_user}","gists_url":"https://api.github.com/users/mpasternak/gists{/gist_id}","starred_url":"https://api.github.com/users/mpasternak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpasternak/subscriptions","organizations_url":"https://api.github.com/users/mpasternak/orgs","repos_url":"https://api.github.com/users/mpasternak/repos","events_url":"https://api.github.com/users/mpasternak/events{/privacy}","received_events_url":"https://api.github.com/users/mpasternak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Windows","name":"Windows","color":"fef2c0"}],"state":"closed","locked":false,"assignee":{"login":"ssgward","id":8439595,"avatar_url":"https://avatars.githubusercontent.com/u/8439595?v=3","gravatar_id":"","url":"https://api.github.com/users/ssgward","html_url":"https://github.com/ssgward","followers_url":"https://api.github.com/users/ssgward/followers","following_url":"https://api.github.com/users/ssgward/following{/other_user}","gists_url":"https://api.github.com/users/ssgward/gists{/gist_id}","starred_url":"https://api.github.com/users/ssgward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssgward/subscriptions","organizations_url":"https://api.github.com/users/ssgward/orgs","repos_url":"https://api.github.com/users/ssgward/repos","events_url":"https://api.github.com/users/ssgward/events{/privacy}","received_events_url":"https://api.github.com/users/ssgward/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/48","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/48/labels","id":856250,"number":48,"title":"Under Review","description":"","creator":{"login":"ssgward","id":8439595,"avatar_url":"https://avatars.githubusercontent.com/u/8439595?v=3","gravatar_id":"","url":"https://api.github.com/users/ssgward","html_url":"https://github.com/ssgward","followers_url":"https://api.github.com/users/ssgward/followers","following_url":"https://api.github.com/users/ssgward/following{/other_user}","gists_url":"https://api.github.com/users/ssgward/gists{/gist_id}","starred_url":"https://api.github.com/users/ssgward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssgward/subscriptions","organizations_url":"https://api.github.com/users/ssgward/orgs","repos_url":"https://api.github.com/users/ssgward/repos","events_url":"https://api.github.com/users/ssgward/events{/privacy}","received_events_url":"https://api.github.com/users/ssgward/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":15,"state":"open","created_at":"2014-11-06T17:18:17Z","updated_at":"2015-02-23T16:47:27Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2014-12-15T19:37:18Z","updated_at":"2015-02-23T16:47:27Z","closed_at":"2015-02-23T16:47:27Z","body":"Hi,\r\n\r\nthis is the traceback I get when I try to add hosts file entry with Windows 8.1 . Salt version 2014.7.0\r\n\r\n```\r\nthinkpad.win32:\r\n----------\r\n          ID: master\r\n    Function: host.present\r\n        Name: proxy.local\r\n      Result: False\r\n     Comment: An exception occurred in this state: Traceback (most recent call last):\r\n                File \"salt/state.py\", line 1533, in call\r\n                File \"salt/states/host.py\", line 78, in present\r\n                File \"salt/modules/hosts.py\", line 221, in add_host\r\n                File \"salt/modules/hosts.py\", line 235, in _write_hosts\r\n                File \"salt/utils/__init__.py\", line 1065, in fopen\r\n              IOError: [Errno 13] Permission denied: 'C:\\\\Windows\\\\System32\\\\drivers\\\\etc\\\\hosts'\r\n     Started: 20:34:32.186000\r\n    Duration: 16.0 ms\r\n     Changes:   \r\n----------\r\n```"}}