summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2019-09-25 19:14:47 +0530
committerVivek Singh <vivek.singh@msystechnologies.com>2019-09-25 19:14:47 +0530
commit363c862bf59b933d73608199de5eb3cb1adb3bf3 (patch)
tree08987ef435f45b63b88c1446f1602e87659ff10e
parent0b773e76d0681f050bd493e3603268f8f6ef3a38 (diff)
downloadchef-363c862bf59b933d73608199de5eb3cb1adb3bf3.tar.gz
Fix knife ssh interactive mode exit error
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
-rw-r--r--lib/chef/knife/ssh.rb2
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