opscode/chef — pull request #507 by pivotal-casebook (2012-11-29 17:21:54+00:00)
Title: CHEF-2627: Knife SSH should return exit code based on whether or not ssh command is successful or not

Actually return the exit code received from remote hosts. Instead of exiting with the last status code received, exit with any non-zero exit code if one exists.