diff options
author | Sarkis Varozian <svarozian@gmail.com> | 2017-11-10 19:27:15 -0800 |
---|---|---|
committer | Sarkis Varozian <svarozian@gmail.com> | 2017-11-10 19:33:23 -0800 |
commit | 55d8f5c04eb2370560ee21609ec590659766743d (patch) | |
tree | dd5ddd47a35c63a36cf6810507b5210d8dc972e6 /lib | |
parent | 223d9556f1b98e548f26d1ebe4b8eee5f1c98db2 (diff) | |
download | chef-55d8f5c04eb2370560ee21609ec590659766743d.tar.gz |
use a stricter comparison here so knife ssh only fails if
--exit-on-error
Signed-off-by: Sarkis Varozian <svarozian@gmail.com>
Diffstat (limited to 'lib')
-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 ae14ce9954..e47a27f0c3 100644 --- a/lib/chef/knife/ssh.rb +++ b/lib/chef/knife/ssh.rb @@ -335,7 +335,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 |