From 7ad867d82ccf2c859eae5e812f2203be2302d54c Mon Sep 17 00:00:00 2001 From: Manuel Bua Date: Tue, 30 Jun 2020 22:23:39 +0200 Subject: [PATCH] Defaults to ORCondition when no condition is specified --- pkg/templates/compile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/templates/compile.go b/pkg/templates/compile.go index cb66d8435..f3c05671d 100644 --- a/pkg/templates/compile.go +++ b/pkg/templates/compile.go @@ -35,7 +35,7 @@ func Parse(file string) (*Template, error) { // Get the condition between the matchers condition, ok := matchers.ConditionTypes[request.MatchersCondition] if !ok { - request.SetMatchersCondition(matchers.ANDCondition) + request.SetMatchersCondition(matchers.ORCondition) } else { request.SetMatchersCondition(condition) } @@ -73,7 +73,7 @@ func Parse(file string) (*Template, error) { // Get the condition between the matchers condition, ok := matchers.ConditionTypes[request.MatchersCondition] if !ok { - request.SetMatchersCondition(matchers.ANDCondition) + request.SetMatchersCondition(matchers.ORCondition) } else { request.SetMatchersCondition(condition) }