mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Ignore domain not having roles.
This commit is contained in:
parent
d5589a018d
commit
421a05d421
1 changed files with 5 additions and 0 deletions
|
|
@ -271,6 +271,11 @@ func (p *processor) run(domains []string) (*Report, error) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if domain.Role == nil {
|
||||||
|
log.Printf("No role found in meta data. Ignoring domain %q\n", d)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
rules := roleRequirements(*domain.Role)
|
rules := roleRequirements(*domain.Role)
|
||||||
// TODO: store error base on rules eval in report.
|
// TODO: store error base on rules eval in report.
|
||||||
if rules == nil {
|
if rules == nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue