fmaximus commented on a change in pull request #2743: CLOUDSTACK-10380: Fix
startvm giving another pw after pw reset
URL: https://github.com/apache/cloudstack/pull/2743#discussion_r206069624
##########
File path: server/src/com/cloud/vm/UserVmManagerImpl.java
##########
@@ -688,10 +689,6 @@ public UserVm resetVMPassword(ResetVMPasswordCmd cmd,
String password) throws Re
if (result) {
userVm.setPassword(password);
- // update the password in vm_details table too
- // Check if an SSH key pair was selected for the instance and if so
- // use it to encrypt & save the vm password
- encryptAndStorePassword(userVm, password);
Review comment:
`encryptAndStorePassword` was already done inside `resetVMPasswordInternal`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services