From b8ab3cd3b3938daa5ea7252893c67e8464b8142b Mon Sep 17 00:00:00 2001 From: wilderrodrigues Date: Thu, 25 Jun 2015 13:29:22 +0200 Subject: [PATCH] Fix a bug in the doUpdateHostPassword() method - 2 years ago a change in that method caused an issue when trying to update the hosts password: - they would be updated in the databse but not in the host it self, causing the hosts to disconnect after a management server resstart Signed-off-by: wilderrodrigues --- server/src/com/cloud/resource/ResourceManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/resource/ResourceManagerImpl.java b/server/src/com/cloud/resource/ResourceManagerImpl.java index 00bdb92e980..c1a7dbc45c1 100644 --- a/server/src/com/cloud/resource/ResourceManagerImpl.java +++ b/server/src/com/cloud/resource/ResourceManagerImpl.java @@ -2225,7 +2225,7 @@ public class ResourceManagerImpl extends ManagerBase implements ResourceManager, } private boolean doUpdateHostPassword(final long hostId) { - if (_agentMgr.isAgentAttached(hostId)) { + if (!_agentMgr.isAgentAttached(hostId)) { return false; }