Skip to content

Commit 6f3694c

Browse files
cl-k-takahashiyadvr
authored andcommitted
server: save SSH.PublicKey into user_vm_details regardless of password management (#3745)
Fixes: #3744 Signed-off-by: Kai Takahashi <k-takahashi@creationline.com>
1 parent e56fa31 commit 6f3694c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

server/src/main/java/com/cloud/vm/UserVmManagerImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,9 +863,8 @@ private boolean resetVMSSHKeyInternal(Long vmId, String sshPublicKey, String pas
863863
userVm.setPassword(password);
864864
//update the encrypted password in vm_details table too
865865
encryptAndStorePassword(userVm, password);
866-
} else {
867-
_vmDao.saveDetails(userVm);
868866
}
867+
_vmDao.saveDetails(userVm);
869868

870869
if (vmInstance.getState() == State.Stopped) {
871870
s_logger.debug("Vm " + vmInstance + " is stopped, not rebooting it as a part of SSH Key reset");

0 commit comments

Comments
 (0)