mirror of https://github.com/apache/cloudstack.git
server: password is not displayed when reinstall a vm or reset… (#3948)
This commit is contained in:
parent
7d0fd9fa3f
commit
19fb23781b
|
|
@ -822,6 +822,7 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
|
|||
if (!result) {
|
||||
throw new CloudRuntimeException("Failed to reset SSH Key for the virtual machine ");
|
||||
}
|
||||
userVm.setPassword(password);
|
||||
return userVm;
|
||||
}
|
||||
|
||||
|
|
@ -6503,6 +6504,7 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
|
|||
if (!result) {
|
||||
throw new CloudRuntimeException("VM reset is completed but failed to reset password for the virtual machine ");
|
||||
}
|
||||
vm.setPassword(password);
|
||||
}
|
||||
|
||||
if (needRestart) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue