mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
log message before host resource is set. Otherwise log will show same resource as changed from and to
This commit is contained in:
parent
8fe917be9d
commit
f3001534d5
@ -566,11 +566,11 @@ public class XcpServerDiscoverer extends DiscovererBase implements Discoverer, L
|
||||
throw new RuntimeException(msg);
|
||||
}
|
||||
if (! resource.equals(host.getResource()) ) {
|
||||
String msg = "host " + host.getPrivateIpAddress() + " changed from " + host.getResource() + " to " + resource;
|
||||
s_logger.debug(msg);
|
||||
host.setResource(resource);
|
||||
host.setSetup(false);
|
||||
_hostDao.update(agentId, host);
|
||||
String msg = "host " + host.getPrivateIpAddress() + " changed from " + host.getResource() + " to " + resource;
|
||||
s_logger.debug(msg);
|
||||
throw new HypervisorVersionChangedException(msg);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user