Skip to content

Commit

Permalink
database/pgsql: copy whole namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jzelinskie committed Feb 23, 2017
1 parent bc87d80 commit 9e875f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/pgsql/vulnerability.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (pgSQL *pgSQL) insertVulnerability(vulnerability database.Vulnerability, on
if fifv.Feature.Namespace.Name == "" {
// As there is no Namespace on that FixedIn FeatureVersion, set it to the Vulnerability's
// Namespace.
fifv.Feature.Namespace.Name = vulnerability.Namespace.Name
fifv.Feature.Namespace = vulnerability.Namespace
} 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"
log.Warning(msg)
Expand Down

0 comments on commit 9e875f7

Please sign in to comment.