-
Notifications
You must be signed in to change notification settings - Fork 374
kata-env: kata-env error out when there is no VERSION_ID. #1178
Conversation
/test |
cli/utils.go
Outdated
@@ -71,7 +71,7 @@ func getDistroDetails() (name, version string, err error) { | |||
} | |||
} | |||
|
|||
if name != "" && version != "" { | |||
if name != "" || version != "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, if we found one of them we should probably return it.
I suspect it might be good if we set the unfound item to something like <not set>
- and maybe do that for both if neither is found, and not error out at all. @jodh-intel - wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we return what we know and what we don't know(set to <not set> or <unknown> looks better, I think. :)
/test |
Update to return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the updates!
lgtm
/test |
Thanks @yyyeerbo. I'm hoping we can overcome this issue (kata-containers/documentation#358 (review)), but I agree this PR is a good idea regardless. lgtm |
/retest |
2 similar comments
/retest |
/retest |
fix bug and testcase.. |
/test |
For example, under debian buster/sid. Those information should be provide with best effort instead of error out. Set name and version to "<<unknown>>" if they are not defined. Fixes: kata-containers#1177 Signed-off-by: Yang Bo <[email protected]>
fix testcases |
/test |
Restarted failing CIs (metrics timed out). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now let's wait the test results
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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]