1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Fix aggregator to create valid uppercase TLPs. (#250)

Resolve #249
This commit is contained in:
Sascha L. Teichmann 2022-07-22 09:09:25 +02:00 committed by GitHub
parent ca69997e2b
commit 60b1db2da1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,7 +116,7 @@ func (w *worker) mirrorInternal() (*csaf.AggregatorCSAFProvider, error) {
func (w *worker) labelsFromSummaries() []csaf.TLPLabel { func (w *worker) labelsFromSummaries() []csaf.TLPLabel {
labels := make([]csaf.TLPLabel, 0, len(w.summaries)) labels := make([]csaf.TLPLabel, 0, len(w.summaries))
for label := range w.summaries { for label := range w.summaries {
labels = append(labels, csaf.TLPLabel(label)) labels = append(labels, csaf.TLPLabel(strings.ToUpper(label)))
} }
sort.Slice(labels, func(i, j int) bool { return labels[i] < labels[j] }) sort.Slice(labels, func(i, j int) bool { return labels[i] < labels[j] })
return labels return labels