From e5b98c00572abf3683cf81763fa2286e7473d0c0 Mon Sep 17 00:00:00 2001 From: Yang Bo Date: Fri, 25 Jan 2019 18:40:43 +0800 Subject: [PATCH] kata-env: kata-env error out when there is no VERSION_ID. For example, under debian buster/sid. Those information should be provide with best effort instead of error out. Fixes: #1177 Signed-off-by: Yang Bo --- cli/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/utils.go b/cli/utils.go index 7252d20e3c..6d87f46287 100644 --- a/cli/utils.go +++ b/cli/utils.go @@ -71,7 +71,7 @@ func getDistroDetails() (name, version string, err error) { } } - if name != "" && version != "" { + if name != "" || version != "" { return name, version, nil } }