From ec72fbbcc45825f0ba2310ba9e411b63e83df620 Mon Sep 17 00:00:00 2001 From: Qu Xuan Date: Fri, 28 May 2021 15:14:32 +0800 Subject: [PATCH] fix(region): project sync condition --- pkg/apis/compute/project_mappings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/compute/project_mappings.go b/pkg/apis/compute/project_mappings.go index 70c92a6054..a3992907f4 100644 --- a/pkg/apis/compute/project_mappings.go +++ b/pkg/apis/compute/project_mappings.go @@ -111,7 +111,7 @@ func (self *ProjectMappingRuleInfo) IsMatchTags(_extTags map[string]string) (str case MAPPING_CONDITION_OR: for _, tag := range self.Tags { extTag, ok := extTags[strings.ToUpper(tag.Key)] - if ok && len(tag.Value) == 0 || tag.Value == extTag { + if ok && (len(tag.Value) == 0 || tag.Value == extTag) { if self.AutoCreateProject && len(tag.Value) == 0 && len(extTag) > 0 { return "", "", extTag, true } else {