database/pgsql: copy whole namespace
This commit is contained in:
parent
bc87d80ee9
commit
9e875f748d
@ -241,7 +241,7 @@ func (pgSQL *pgSQL) insertVulnerability(vulnerability database.Vulnerability, on
|
|||||||
if fifv.Feature.Namespace.Name == "" {
|
if fifv.Feature.Namespace.Name == "" {
|
||||||
// As there is no Namespace on that FixedIn FeatureVersion, set it to the Vulnerability's
|
// As there is no Namespace on that FixedIn FeatureVersion, set it to the Vulnerability's
|
||||||
// Namespace.
|
// Namespace.
|
||||||
fifv.Feature.Namespace.Name = vulnerability.Namespace.Name
|
fifv.Feature.Namespace = vulnerability.Namespace
|
||||||
} else if fifv.Feature.Namespace.Name != vulnerability.Namespace.Name {
|
} else if fifv.Feature.Namespace.Name != vulnerability.Namespace.Name {
|
||||||
msg := "could not insert an invalid vulnerability that contains FixedIn FeatureVersion that are not in the same namespace as the Vulnerability"
|
msg := "could not insert an invalid vulnerability that contains FixedIn FeatureVersion that are not in the same namespace as the Vulnerability"
|
||||||
log.Warning(msg)
|
log.Warning(msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user