Skip to content

Commit d61e60b

Browse files
author
Kishan Kavala
committed
CLOUDSTACK-4915, CLOUDSTACK-4933 : Revert "CLOUDSTACK-4911 - [Mixed Hypervisor] VM Status is marked as alive when exit status of ping command is not available within command timeout"
This reverts commit b6a13d1.
1 parent 3e962f8 commit d61e60b

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎utils/src/com/cloud/utils/ssh/SshHelper.java‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,6 @@ public static Pair<Boolean, String> sshExecute(String host, int port, String use
185185
}
186186

187187
String result = sbResult.toString();
188-
189-
if (sess.getExitStatus() == null) {
190-
//Exit status is NOT available. Returning failure result.
191-
return new Pair<Boolean, String>(false, result);
192-
}
193-
194188
if (sess.getExitStatus() != null && sess.getExitStatus().intValue() != 0) {
195189
s_logger.error("SSH execution of command " + command + " has an error status code in return. result output: " + result);
196190
return new Pair<Boolean, String>(false, result);

0 commit comments

Comments
 (0)