cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject [11/15] git commit: updated refs/heads/master to 527d6ee
Date Mon, 29 Jun 2015 08:43:49 GMT
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 <wrodrigues@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 <wrodrigues@schubergphilis.com>
Authored: Thu Jun 25 13:29:22 2015 +0200
Committer: wilderrodrigues <wrodrigues@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;
         }
 


Mime
View raw message