mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-30 18:23:35 +08:00
Merge pull request #11252 from ioito/automated-cherry-pick-of-#11251-upstream-release-3.7
Automated cherry pick of #11251: fix(region): project sync condition
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user