diff options
author | Vivek Singh <vivek.singh@msystechnologies.com> | 2019-09-25 19:14:47 +0530 |
---|---|---|
committer | Vivek Singh <vivek.singh@msystechnologies.com> | 2019-09-25 19:14:47 +0530 |
commit | 363c862bf59b933d73608199de5eb3cb1adb3bf3 (patch) | |
tree | 08987ef435f45b63b88c1446f1602e87659ff10e /lib | |
parent | 0b773e76d0681f050bd493e3603268f8f6ef3a38 (diff) | |
download | chef-363c862bf59b933d73608199de5eb3cb1adb3bf3.tar.gz |
Fix knife ssh interactive mode exit error
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.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 2a4334570e..28c83a9bde 100644 --- a/lib/chef/knife/ssh.rb +++ b/lib/chef/knife/ssh.rb @@ -623,7 +623,7 @@ class Chef end session.close - if exit_status != 0 + if exit_status && exit_status != 0 exit exit_status else exit_status |