CLOUDSTACK-5453: Fix VPN connection monitoring in KVM

It's broken by:

commit 7f104b1feb
Author: Edison Su <sudison@gmail.com>
Date: Fri Oct 12 18:24:50 2012 -0700

    [PATCH] CLOUDSTACK-335: fix lb for vpc on kvm
This commit is contained in:
Sheng Yang 2013-12-10 17:32:00 -08:00
parent 28a4bfc559
commit e02682327d
1 changed files with 1 additions and 1 deletions

View File

@ -663,7 +663,7 @@ public class VirtualRoutingResource implements Manager {
}
final String result = routerProxy("checkbatchs2svpn.sh", routerIP, args);
if (result != null) {
if (result == null || result.isEmpty()) {
return new CheckS2SVpnConnectionsAnswer(cmd, false, "CheckS2SVpnConneciontsCommand failed");
}
return new CheckS2SVpnConnectionsAnswer(cmd, true, result);