davidjumani commented on a change in pull request #5215:
URL: https://github.com/apache/cloudstack/pull/5215#discussion_r685693849
##########
File path: server/src/main/java/com/cloud/vm/UserVmManagerImpl.java
##########
@@ -921,12 +942,14 @@ private boolean resetVMSSHKeyInternal(Long vmId, String
sshPublicKey) throws Res
final UserVmVO userVm = _vmDao.findById(vmId);
_vmDao.loadDetails(userVm);
userVm.setDetail(VmDetailConstants.SSH_PUBLIC_KEY, sshPublicKey);
+ userVm.setDetail(VmDetailConstants.KEY_PAIR_NAMES, keypairnames);
_vmDao.saveDetails(userVm);
if (vmInstance.getState() == State.Stopped) {
s_logger.debug("Vm " + vmInstance + " is stopped, not
rebooting it as a part of SSH Key reset");
return true;
}
+ s_logger.info("bb " +
userVm.getDetail(VmDetailConstants.KEY_PAIR_NAMES));
Review comment:
Better logging
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]