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:
Pearl Dsilva 2024-06-12 05:00:08 -04:00 committed by GitHub
parent 4ec0f823cf
commit 0f770194df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}