{"action":"reopened","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/23102","labels_url":"https://api.github.com/repos/saltstack/salt/issues/23102/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/23102/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/23102/events","html_url":"https://github.com/saltstack/salt/issues/23102","id":71358510,"number":23102,"title":"salt-ssh doesn't have a non-zero return code on a failure.","user":{"login":"ngrennan-inflection","id":10425470,"avatar_url":"https://avatars.githubusercontent.com/u/10425470?v=3","gravatar_id":"","url":"https://api.github.com/users/ngrennan-inflection","html_url":"https://github.com/ngrennan-inflection","followers_url":"https://api.github.com/users/ngrennan-inflection/followers","following_url":"https://api.github.com/users/ngrennan-inflection/following{/other_user}","gists_url":"https://api.github.com/users/ngrennan-inflection/gists{/gist_id}","starred_url":"https://api.github.com/users/ngrennan-inflection/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngrennan-inflection/subscriptions","organizations_url":"https://api.github.com/users/ngrennan-inflection/orgs","repos_url":"https://api.github.com/users/ngrennan-inflection/repos","events_url":"https://api.github.com/users/ngrennan-inflection/events{/privacy}","received_events_url":"https://api.github.com/users/ngrennan-inflection/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/Core","name":"Core","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Medium%20Severity","name":"Medium Severity","color":"fad8c7"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P2","name":"P2","color":"155fb5"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Salt-SSH","name":"Salt-SSH","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"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},"open_issues":2601,"closed_issues":2732,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-10-12T18:35:58Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-04-27T18:02:31Z","updated_at":"2015-10-12T18:35:58Z","closed_at":null,"body":"  Below is an example of an error from salt-ssh that returns 0. Another I have seen is when the ssh connection to the host times out.\r\n\r\n  I am trying to use jenkins and salt-ssh for deploys, but jenkins expects processes to return non-zero on a failure.\r\n\r\n[ngrennan@bastion-01 salt-ssh]$ salt-ssh -i 'test' cmd.run 'test'\r\ntest:\r\n    ----------\r\n    retcode:\r\n        255\r\n    stderr:\r\n        ssh: connect to host www.google.com port 22: Network is unreachable\r\n    stdout:\r\n[ngrennan@bastion-01 salt-ssh]$ echo $?\r\n0\r\n"}}