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>
This commit is contained in:
wilderrodrigues 2015-06-25 13:29:22 +02:00
parent 3367ecc71c
commit b8ab3cd3b3

View File

@ -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;
}