{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/864","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/864/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/864/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/864/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/864","id":59236561,"number":864,"title":"script module crashes with \"Exception while splitting arguments\"","user":{"login":"bitmax1","id":11225702,"avatar_url":"https://avatars.githubusercontent.com/u/11225702?v=3","gravatar_id":"","url":"https://api.github.com/users/bitmax1","html_url":"https://github.com/bitmax1","followers_url":"https://api.github.com/users/bitmax1/followers","following_url":"https://api.github.com/users/bitmax1/following{/other_user}","gists_url":"https://api.github.com/users/bitmax1/gists{/gist_id}","starred_url":"https://api.github.com/users/bitmax1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitmax1/subscriptions","organizations_url":"https://api.github.com/users/bitmax1/orgs","repos_url":"https://api.github.com/users/bitmax1/repos","events_url":"https://api.github.com/users/bitmax1/events{/privacy}","received_events_url":"https://api.github.com/users/bitmax1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/needs_info","name":"needs_info","color":"eb6420"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/P2","name":"P2","color":"fad8c7"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/windows","name":"windows","color":"777777"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-27T13:34:09Z","updated_at":"2015-03-03T10:38:40Z","closed_at":"2015-03-03T10:38:40Z","body":"When calling a windows powershell script, that sends backslashes to std_err script module crashes with exception, caused by the call of vvvv because split_args can't handle the input.\r\n\r\nSample windows output:\r\nDer Pfad \r\n\"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\RemovableStorageDevices\" kann nicht \r\ngefunden werden, da er nicht vorhanden ist.\r\nIn C:\\Users\\Administrator\\AppData\\Local\\Temp\\ansible-tmp-1425043462.98-71560949\r\n861849\\enableRDPcdromAccess.ps1:7 Zeichen:1\r\n+ set-ItemProperty -Path \r\n'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\RemovableStora ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n~~~\r\n    + CategoryInfo          : ObjectNotFound: (HKLM:\\SOFTWARE\\...eStorageDevic \r\n   es:String) [Set-ItemProperty], ItemNotFoundException\r\n    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetIt \r\n   emPropertyCommand\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/76922681","html_url":"https://github.com/ansible/ansible-modules-core/issues/864#issuecomment-76922681","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/864","id":76922681,"user":{"login":"bitmax1","id":11225702,"avatar_url":"https://avatars.githubusercontent.com/u/11225702?v=3","gravatar_id":"","url":"https://api.github.com/users/bitmax1","html_url":"https://github.com/bitmax1","followers_url":"https://api.github.com/users/bitmax1/followers","following_url":"https://api.github.com/users/bitmax1/following{/other_user}","gists_url":"https://api.github.com/users/bitmax1/gists{/gist_id}","starred_url":"https://api.github.com/users/bitmax1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitmax1/subscriptions","organizations_url":"https://api.github.com/users/bitmax1/orgs","repos_url":"https://api.github.com/users/bitmax1/repos","events_url":"https://api.github.com/users/bitmax1/events{/privacy}","received_events_url":"https://api.github.com/users/bitmax1/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T10:38:40Z","updated_at":"2015-03-03T10:38:40Z","body":"Sorry, can't reproduce it anymore by myself either.\r\nHaving changed line 153 of ansible/lib/ansible/runner/connection_plugins/winrm.py to \r\n<code>return (result.status_code, '', result.std_out.decode('cp437').encode('utf-8'), result.std_err.decode('cp437').encode('utf-8'))</code>\r\nto come around the problems with the german umlauts, the problem with the output above mentioned seems to vanished again.\r\nNext time something like this happens, i'll freeze my machine (i promise)"}}