diff options
author | Sarkis Varozian <svarozian@gmail.com> | 2017-11-10 19:27:15 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-02-21 10:05:04 -0800 |
commit | 00b9cbbc873b8302e32d4fa9ea3e9cb60d7c38ca (patch) | |
tree | 05e0e6c8793c0b29eba5b1e5427eb372373a82de | |
parent | 3ae989a40029813df47e4c70b6e71e919e908a20 (diff) | |
download | chef-00b9cbbc873b8302e32d4fa9ea3e9cb60d7c38ca.tar.gz |
use a stricter comparison here so knife ssh only fails if
--exit-on-error
Signed-off-by: Sarkis Varozian <svarozian@gmail.com>
-rw-r--r-- | lib/chef/knife/ssh.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/ssh.rb b/lib/chef/knife/ssh.rb index b6abd67719..db3c6870b5 100644 --- a/lib/chef/knife/ssh.rb +++ b/lib/chef/knife/ssh.rb @@ -347,7 +347,7 @@ class Chef command = fixup_sudo(command) command.force_encoding("binary") if command.respond_to?(:force_encoding) subsession.open_channel do |chan| - if config[:on_error] && exit_status != 0 + if config[:on_error] == :raise && exit_status != 0 chan.close() else chan.request_pty |