Skip to content

Commit b5be037

Browse files
author
gitlab
committed
Merge branch 'zsv-ldap' into 'feature-zsv-5.0.0-vm-support-vtpm-and-secuceboot'
<fix>[kvm]: add null check for dstHostUuid in secure boot See merge request zstackio/zstack!9531
2 parents 24901c9 + 677c96e commit b5be037

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

plugin/kvm/src/main/java/org/zstack/kvm/efi/KvmSecureBootExtensions.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ public void preVmMigration(VmInstanceInventory vm, VmMigrationType type, String
168168
return;
169169
}
170170

171+
if (dstHostUuid == null) {
172+
completion.success();
173+
return;
174+
}
175+
171176
String tpmUuid = Q.New(TpmVO.class)
172177
.eq(TpmVO_.vmInstanceUuid, vm.getUuid())
173178
.select(TpmVO_.uuid)

0 commit comments

Comments
 (0)