mirror of https://github.com/apache/cloudstack.git
try pingXenServer first before getConnect in getCurrentStatus
This commit is contained in:
parent
d923079ed9
commit
bc23b47e7a
|
|
@ -3746,7 +3746,6 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
|
|||
@Override
|
||||
public PingCommand getCurrentStatus(long id) {
|
||||
try {
|
||||
Connection conn = getConnection();
|
||||
if (!pingXenServer()) {
|
||||
Thread.sleep(1000);
|
||||
if (!pingXenServer()) {
|
||||
|
|
@ -3754,6 +3753,7 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
|
|||
return null;
|
||||
}
|
||||
}
|
||||
Connection conn = getConnection();
|
||||
HashMap<String, State> newStates = deltaSync(conn);
|
||||
if (newStates == null) {
|
||||
s_logger.warn("Unable to get current status from sync");
|
||||
|
|
|
|||
Loading…
Reference in New Issue