From e2b71184aadb255cc9bc49d0348181e3478d087b Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Fri, 17 Jul 2020 13:06:42 -0400 Subject: [PATCH] when no distros are matched, return an UnkownDistro Signed-off-by: Alfredo Deza --- imgbom/distro/identify.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imgbom/distro/identify.go b/imgbom/distro/identify.go index 7070ce4ca..1af85d6cc 100644 --- a/imgbom/distro/identify.go +++ b/imgbom/distro/identify.go @@ -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 {