-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: restore the id parameter default #4154
Conversation
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.
Is it easy to add a regression test for this?
Yeah it should be. Let me add one. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #4154 +/- ##
==========================================
+ Coverage 82.97% 82.99% +0.01%
==========================================
Files 223 223
Lines 28452 28448 -4
==========================================
Hits 23609 23609
+ Misses 4843 4839 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Running Firecracker without parameters causes a panic. ``` [anonymous-instance:main] Running Firecracker v1.5.0-dev [anonymous-instance:main] Firecracker panicked at 'called `Option::unwrap()` on a `None` value', src/firecracker/src/main.rs:291:52 [1] 980007 IOT instruction ./firecracker ``` Fixes: 332f218 Signed-off-by: Pablo Barbáchano <[email protected]>
Changes
Restore the default value of the
--id
parameter, since it can cause a panic. And move the "running" message after the option is processed.Reason
Without the change:
With the change:
License Acceptance
By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license. For more information on following
Developer Certificate of Origin and signing off your commits, please check
CONTRIBUTING.md
.PR Checklist
CHANGELOG.md
.TODO
s link to an issue.rust-vmm
.