private.network.device may change, always try to find out the real private.network.device

This commit is contained in:
anthony 2010-09-29 19:20:42 -07:00
parent 394371eba6
commit 154880cebf
1 changed files with 2 additions and 0 deletions

View File

@ -950,6 +950,8 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory {
HashMap<String, Object> params = new HashMap<String, Object>(host.getDetails().size() + 5);
params.putAll(host.getDetails());
// private.network.device may change when reconnect
params.remove("private.network.device");
params.put("guid", host.getGuid());
params.put("zone", Long.toString(host.getDataCenterId()));
if (host.getPodId() != null) {