diff --git a/cli/utils.go b/cli/utils.go index 7252d20e3c..5a7865d58e 100644 --- a/cli/utils.go +++ b/cli/utils.go @@ -71,9 +71,15 @@ func getDistroDetails() (name, version string, err error) { } } - if name != "" && version != "" { - return name, version, nil + if name == "" { + name = unknown } + + if version == "" { + version = unknown + } + + return name, version, nil } return "", "", fmt.Errorf("failed to find expected fields in one of %v", files)