File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
server/src/main/java/org/apache/cloudstack/vm Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1550,7 +1550,7 @@ private ServiceOfferingVO getServiceOfferingForImportInstance(Long serviceOfferi
15501550 protected VMTemplateVO getTemplateForImportInstance (Long templateId , Hypervisor .HypervisorType hypervisorType ) {
15511551 VMTemplateVO template ;
15521552 if (templateId == null ) {
1553- String templateName = (Hypervisor .HypervisorType .KVM == hypervisorType ) ? KVM_VM_IMPORT_DEFAULT_TEMPLATE_NAME : VM_IMPORT_DEFAULT_TEMPLATE_NAME ;
1553+ String templateName = (Hypervisor .HypervisorType .KVM . equals ( hypervisorType ) ) ? KVM_VM_IMPORT_DEFAULT_TEMPLATE_NAME : VM_IMPORT_DEFAULT_TEMPLATE_NAME ;
15541554 template = templateDao .findByName (templateName );
15551555 if (template == null ) {
15561556 template = createDefaultDummyVmImportTemplate (Hypervisor .HypervisorType .KVM == hypervisorType );
You can’t perform that action at this time.
0 commit comments