Skip to content

Commit

Permalink
Add missing category list in ROLIE feeds. Resolves issue #41
Browse files Browse the repository at this point in the history
  • Loading branch information
s-l-teichmann committed May 25, 2022
1 parent 13423c3 commit de595f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/csaf_aggregator/indices.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ func (w *worker) writeROLIE(label string, summaries []summary) error {
Rel: "rel",
HRef: feedURL,
}},
Category: []csaf.ROLIECategory{{
Scheme: "urn:ietf:params:rolie:category:information-type",
Term: "csaf",
}},
Updated: csaf.TimeStamp(time.Now()),
Entry: entries,
},
Expand Down
4 changes: 4 additions & 0 deletions cmd/csaf_provider/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ func (c *controller) upload(r *http.Request) (interface{}, error) {
Rel: "rel",
HRef: string(feedURL),
}},
Category: []csaf.ROLIECategory{{
Scheme: "urn:ietf:params:rolie:category:information-type",
Term: "csaf",
}},
},
}
}
Expand Down

0 comments on commit de595f5

Please sign in to comment.