Skip to content

Commit 0f77019

Browse files
authored
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
1 parent 4ec0f82 commit 0f77019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/com/cloud/vm/UserVmManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7957,7 +7957,7 @@ public Pair<UserVmVO, Volume> doInTransaction(final TransactionStatus status) th
79577957
}
79587958
if (needRestart) {
79597959
try {
7960-
if (vm.getDetail(VmDetailConstants.PASSWORD) != null) {
7960+
if (Objects.nonNull(password)) {
79617961
params = new HashMap<>();
79627962
params.put(VirtualMachineProfile.Param.VmPassword, password);
79637963
}

0 commit comments

Comments
 (0)