when no distros are matched, return an UnkownDistro

Signed-off-by: Alfredo Deza <adeza@anchore.com>
This commit is contained in:
Alfredo Deza
2020-07-17 13:32:53 -04:00
parent f51cae2043
commit e2b71184aa
+2 -1
View File
@@ -61,7 +61,8 @@ func Identify(s scope.Scope) *Distro {
}
}
// TODO: is it useful to know partially detected distros? where the ID is known but not the version (and viceversa?)
return nil
distro := NewUnknownDistro()
return &distro
}
func assembleDistro(name, version string) *Distro {