Skip to content

Commit 1df4bc3

Browse files
Update == to equals
Co-authored-by: dahn <daan.hoogland@gmail.com>
1 parent fcdc998 commit 1df4bc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)