mirror of https://github.com/apache/cloudstack.git
Bug 8102: CheckSshAnswer could be null
This commit is contained in:
parent
2b646f3ee0
commit
a56e5ace88
|
|
@ -1537,8 +1537,11 @@ public class ConsoleProxyManagerImpl implements ConsoleProxyManager, ConsoleProx
|
|||
@Override
|
||||
public boolean finalizeStart(VirtualMachineProfile<ConsoleProxyVO> profile, long hostId, Commands cmds, ReservationContext context) {
|
||||
CheckSshAnswer answer = (CheckSshAnswer)cmds.getAnswer("checkSsh");
|
||||
if (!answer.getResult()) {
|
||||
s_logger.warn("Unable to ssh to the VM: " + answer.getDetails());
|
||||
if (answer == null || !answer.getResult()) {
|
||||
if(answer != null)
|
||||
s_logger.warn("Unable to ssh to the VM: " + answer.getDetails());
|
||||
else
|
||||
s_logger.warn("Unable to ssh to the VM: null answer");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue