mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Configure config drive ISO with password file on reinstallation of VM with password-enabled template (#9113)
* Configure config drive ISO with password file on reinstallation of VM with password-enabled template * address comment
This commit is contained in:
parent
4ec0f823cf
commit
0f770194df
@ -7957,7 +7957,7 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
|
||||
}
|
||||
if (needRestart) {
|
||||
try {
|
||||
if (vm.getDetail(VmDetailConstants.PASSWORD) != null) {
|
||||
if (Objects.nonNull(password)) {
|
||||
params = new HashMap<>();
|
||||
params.put(VirtualMachineProfile.Param.VmPassword, password);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user