mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 23:26:39 -08:00
fix(cli): fix incorrect comparision of DB metadata type. (#1286)
-- Incorrect Db metadata type comparision resulted in wrong print in show version. This fixes #1275. Signed-off-by: Bes Dollma <besi7dollma@gmail.com>
This commit is contained in:
@@ -410,9 +410,9 @@ func showVersion(cacheDir, outputFormat, version string, outputWriter io.Writer)
|
||||
if dbMeta != nil {
|
||||
var dbType string
|
||||
switch dbMeta.Type {
|
||||
case 0:
|
||||
case db.TypeFull:
|
||||
dbType = "Full"
|
||||
case 1:
|
||||
case db.TypeLight:
|
||||
dbType = "Light"
|
||||
}
|
||||
output += fmt.Sprintf(`Vulnerability DB:
|
||||
|
||||
Reference in New Issue
Block a user