From b27168f0815eeaafbcaa0d968971298870ca4571 Mon Sep 17 00:00:00 2001 From: luomingmeng Date: Tue, 23 Apr 2024 17:14:23 +0800 Subject: [PATCH] fix MergeAttributes sort zone attribute --- pkg/util/cnr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/cnr.go b/pkg/util/cnr.go index 2a72eb715..bba78c3a6 100644 --- a/pkg/util/cnr.go +++ b/pkg/util/cnr.go @@ -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