Skip to content

Commit b8ab3cd

Browse files
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>
1 parent 3367ecc commit b8ab3cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/resource/ResourceManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2225,7 +2225,7 @@ public boolean umanageHost(final long hostId) {
22252225
}
22262226

22272227
private boolean doUpdateHostPassword(final long hostId) {
2228-
if (_agentMgr.isAgentAttached(hostId)) {
2228+
if (!_agentMgr.isAgentAttached(hostId)) {
22292229
return false;
22302230
}
22312231

0 commit comments

Comments
 (0)