mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 20:54:08 +00:00
fix arguments too long error
This commit is contained in:
@@ -74,12 +74,16 @@ func main() {
|
||||
if len(errors) != 0 {
|
||||
os.Exit(1)
|
||||
}
|
||||
if len(stableMetrics) == 0 {
|
||||
os.Exit(0)
|
||||
}
|
||||
sort.Sort(byFQName(stableMetrics))
|
||||
data, err := yaml.Marshal(stableMetrics)
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "%s\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
fmt.Print(string(data))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user