diff options
author | Tim Smith <tsmith@chef.io> | 2019-10-09 10:51:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-09 10:51:41 -0700 |
commit | bded9936b29639e8ccf769a5e4cb69781d9bfd6f (patch) | |
tree | 9a77f08321a3bd27568512eac9ac907db9c68f8f | |
parent | 4c1cda25cb1fc74534a0d53a0290401970feb000 (diff) | |
parent | dc79b309bc5f755a840e4c2084bb044d1cf386de (diff) | |
download | chef-bded9936b29639e8ccf769a5e4cb69781d9bfd6f.tar.gz |
Merge pull request #8975 from chef/knife_ssh_exit
Fix knife ssh interactive mode exit error
-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 ab7623a4d8..5b84f80123 100644 --- a/lib/chef/knife/ssh.rb +++ b/lib/chef/knife/ssh.rb @@ -620,7 +620,7 @@ class Chef end session.close - if exit_status != 0 + if exit_status && exit_status != 0 exit exit_status else exit_status |