Skip to content

Commit

Permalink
Merge pull request #90 from OpsLevel/kr/bugfix-tag-assign
Browse files Browse the repository at this point in the history
bugfix: skipover duplicate keys in tags.assign when merging service data due to overlapping aliases
  • Loading branch information
rocktavious authored Oct 26, 2021
2 parents 701e841 + 329e634 commit 4da2554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (s *ServiceRegistration) mergeData(o ServiceRegistration) {
s.Aliases = append(s.Aliases, alias)
}
s.Aliases = removeDuplicates(s.Aliases)
for _, tag := range o.TagAssigns {
for _, tag := range removeOverlappedKeys(s.TagAssigns, o.TagAssigns) {
s.TagAssigns = append(s.TagAssigns, tag)
}
for _, tag := range o.TagCreates {
Expand Down

0 comments on commit 4da2554

Please sign in to comment.