diff --git a/imgbom/distro/distro.go b/imgbom/distro/distro.go index 6ad0b2cae..ac7b518a1 100644 --- a/imgbom/distro/distro.go +++ b/imgbom/distro/distro.go @@ -12,6 +12,13 @@ type Distro struct { RawVersion string } +// NewUnknownDistro creates a standardized UnkownDistro with a "0.0.0" version +func NewUnknownDistro() Distro { + return Distro{ + Type: UnknownDistro, + } +} + func NewDistro(t Type, ver string) (Distro, error) { verObj, err := hashiVer.NewVersion(ver) if err != nil {