Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
kata-env: kata-env error out when there is no VERSION_ID.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
yyyeerbo committed Jan 25, 2019
1 parent 6f2c036 commit e5b98c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func getDistroDetails() (name, version string, err error) {
}
}

if name != "" && version != "" {
if name != "" || version != "" {
return name, version, nil
}
}
Expand Down

0 comments on commit e5b98c0

Please sign in to comment.