Skip to content

Commit 5fac4f0

Browse files
committed
address review comment
1 parent d306749 commit 5fac4f0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,8 +1494,7 @@ protected VMTemplateVO getTemplateForImportInstance(Long templateId, Hypervisor.
14941494
if (templateId == null) {
14951495
template = templateDao.findByName(VM_IMPORT_DEFAULT_TEMPLATE_NAME);
14961496
if (template == null) {
1497-
boolean isKVM = Hypervisor.HypervisorType.KVM == hypervisorType;
1498-
template = createDefaultDummyVmImportTemplate(isKVM);
1497+
template = createDefaultDummyVmImportTemplate(Hypervisor.HypervisorType.KVM == hypervisorType);
14991498
if (template == null) {
15001499
throw new InvalidParameterValueException(String.format("Default VM import template with unique name: %s for hypervisor: %s cannot be created. Please use templateid parameter for import", VM_IMPORT_DEFAULT_TEMPLATE_NAME, hypervisorType.toString()));
15011500
}

0 commit comments

Comments
 (0)