Skip to content

Commit 0f75453

Browse files
committed
engine/schema: fix new systemvm template is not registered during upgrade if hypervisor is not KVM
1 parent e2497cf commit 0f75453

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

engine/schema/src/main/java/com/cloud/upgrade/SystemVmTemplateRegistration.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,11 @@ public void setUpdated(Date updated) {
315315
public static final List<Pair<Hypervisor.HypervisorType, CPU.CPUArch>> hypervisorList = Arrays.asList(
316316
new Pair<>(Hypervisor.HypervisorType.KVM, CPU.CPUArch.amd64),
317317
new Pair<>(Hypervisor.HypervisorType.KVM, CPU.CPUArch.arm64),
318-
new Pair<>(Hypervisor.HypervisorType.VMware, null),
319-
new Pair<>(Hypervisor.HypervisorType.XenServer, null),
320-
new Pair<>(Hypervisor.HypervisorType.Hyperv, null),
321-
new Pair<>(Hypervisor.HypervisorType.LXC, null),
322-
new Pair<>(Hypervisor.HypervisorType.Ovm3, null)
318+
new Pair<>(Hypervisor.HypervisorType.VMware, CPU.CPUArch.getDefault()),
319+
new Pair<>(Hypervisor.HypervisorType.XenServer, CPU.CPUArch.getDefault()),
320+
new Pair<>(Hypervisor.HypervisorType.Hyperv, CPU.CPUArch.getDefault()),
321+
new Pair<>(Hypervisor.HypervisorType.LXC, CPU.CPUArch.getDefault()),
322+
new Pair<>(Hypervisor.HypervisorType.Ovm3, CPU.CPUArch.getDefault())
323323
);
324324

325325
public static final Map<String, MetadataTemplateDetails> NewTemplateMap = new HashMap<>();

0 commit comments

Comments
 (0)