Skip to content

Commit

Permalink
Merge pull request #557 from luomingmeng/dev/fix-zone-attr-order
Browse files Browse the repository at this point in the history
fix MergeAttributes sort zone attribute
  • Loading branch information
luomingmeng committed Apr 23, 2024
2 parents 5268e8e + b27168f commit 4edd0e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/cnr.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func MergeAttributes(dst, src []apis.Attribute) []apis.Attribute {
}

sort.SliceStable(attrs, func(i, j int) bool {
return attrs[i].Name < attrs[j].Value
return attrs[i].Name < attrs[j].Name
})

return attrs
Expand Down

0 comments on commit 4edd0e2

Please sign in to comment.