Skip to content

Commit e54a176

Browse files
committed
fix(cdn) define geofencing order
1 parent 65227cb commit e54a176

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/cmd/beta/cdn/distribution/describe/describe.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package describe
33
import (
44
"context"
55
"fmt"
6+
"slices"
67
"strings"
78

89
"github.com/spf13/cobra"
@@ -172,6 +173,7 @@ func buildDistributionTable(d *cdn.Distribution) tables.Table {
172173
geofencing = append(geofencing, fmt.Sprintf("%s: %s", k, strings.Join(v, ", ")))
173174
}
174175
}
176+
slices.Sort(geofencing)
175177
table.AddRow("BACKEND TYPE", "HTTP")
176178
table.AddSeparator()
177179
table.AddRow("HTTP ORIGIN URL", utils.PtrString(h.OriginUrl))

0 commit comments

Comments
 (0)