You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ek...@apache.org on 2015/06/29 10:43:49 UTC
[11/15] git commit: updated refs/heads/master to 527d6ee
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 <wr...@schubergphilis.com>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b8ab3cd3
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b8ab3cd3
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b8ab3cd3
Branch: refs/heads/master
Commit: b8ab3cd3b3938daa5ea7252893c67e8464b8142b
Parents: 3367ecc
Author: wilderrodrigues <wr...@schubergphilis.com>
Authored: Thu Jun 25 13:29:22 2015 +0200
Committer: wilderrodrigues <wr...@schubergphilis.com>
Committed: Mon Jun 29 09:59:11 2015 +0200
----------------------------------------------------------------------
server/src/com/cloud/resource/ResourceManagerImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b8ab3cd3/server/src/com/cloud/resource/ResourceManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/resource/ResourceManagerImpl.java b/server/src/com/cloud/resource/ResourceManagerImpl.java
index 00bdb92..c1a7dbc 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;
}