{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/47107","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/47107/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/47107/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/47107/events","html_url":"https://github.com/saltstack/salt/pull/47107","id":314815539,"number":47107,"title":"Fix issues with reg state, add tests","user":{"login":"twangboy","id":9383935,"avatar_url":"https://avatars3.githubusercontent.com/u/9383935?v=4","gravatar_id":"","url":"https://api.github.com/users/twangboy","html_url":"https://github.com/twangboy","followers_url":"https://api.github.com/users/twangboy/followers","following_url":"https://api.github.com/users/twangboy/following{/other_user}","gists_url":"https://api.github.com/users/twangboy/gists{/gist_id}","starred_url":"https://api.github.com/users/twangboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twangboy/subscriptions","organizations_url":"https://api.github.com/users/twangboy/orgs","repos_url":"https://api.github.com/users/twangboy/repos","events_url":"https://api.github.com/users/twangboy/events{/privacy}","received_events_url":"https://api.github.com/users/twangboy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-16T20:58:44Z","updated_at":"2018-04-17T00:14:39Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/saltstack/salt/pulls/47107","html_url":"https://github.com/saltstack/salt/pull/47107","diff_url":"https://github.com/saltstack/salt/pull/47107.diff","patch_url":"https://github.com/saltstack/salt/pull/47107.patch"},"body":"### What does this PR do?\r\nFixes some issues with the reg state and salt util\r\nFixes issue when `vdata` is a list and you're passing `vtype: REG_MULTI_SZ` by creating a `cast_vdata` function in `salt.utils.win_reg` for handling the different data types\r\nFixes an issue with binary data and unicode in the same function. Unicode data gets additional unwanted characters when written to the registry as binary. It is now decoded first.\r\nAdds some tests for `reg.present`.\r\n\r\n### What issues does this PR fix or reference?\r\nhttps://github.com/saltstack/salt/issues/46932\r\n\r\n### Tests written?\r\nYes\r\n\r\n### Commits signed with GPG?\r\nYes"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/381789199","html_url":"https://github.com/saltstack/salt/pull/47107#issuecomment-381789199","issue_url":"https://api.github.com/repos/saltstack/salt/issues/47107","id":381789199,"user":{"login":"twangboy","id":9383935,"avatar_url":"https://avatars3.githubusercontent.com/u/9383935?v=4","gravatar_id":"","url":"https://api.github.com/users/twangboy","html_url":"https://github.com/twangboy","followers_url":"https://api.github.com/users/twangboy/followers","following_url":"https://api.github.com/users/twangboy/following{/other_user}","gists_url":"https://api.github.com/users/twangboy/gists{/gist_id}","starred_url":"https://api.github.com/users/twangboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twangboy/subscriptions","organizations_url":"https://api.github.com/users/twangboy/orgs","repos_url":"https://api.github.com/users/twangboy/repos","events_url":"https://api.github.com/users/twangboy/events{/privacy}","received_events_url":"https://api.github.com/users/twangboy/received_events","type":"User","site_admin":false},"created_at":"2018-04-17T00:14:39Z","updated_at":"2018-04-17T00:14:39Z","author_association":"CONTRIBUTOR","body":"Need to test this on PY3 to see how the encoding thing effects the test"}}
{"actor":{"display_login":"twangboy"}}