-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix successfully unmarshalled nil raw result #904
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
Conversation
fe77fb4 to
1c7c696
Compare
Properly handle "null" as plugin output. This successfully unmarshals to a nil map, which crashes later when assigning confVersion to the map. Signed-off-by: Brad Davidson <[email protected]>
|
/lgtm |
1 similar comment
|
/lgtm |
|
Anyone have access to merge? Maybe tag a new release? |
|
@brandond do you need plugins as well? I can get to this later/tomorrow. |
|
I'm honestly not sure! This is my first time contributing. |
|
@brandond released https://github.com/containernetworking/cni/releases/tag/v1.1.2 with your fix. Thanks! Runtimes should revendor libcni to get the fix. |
|
@brandond Thank you for the fix! multus will include it in 4.0. |
This change introduces containernetworking/cni#904 to fix the issue.
This change introduces containernetworking/cni#904 to fix the issue.
This change introduces containernetworking/cni#904 to fix the issue.
Properly handle "null" as plugin output. This successfully unmarshals to a nil map, which crashes later when assigning confVersion to the map. This regression was introduced in #896.
Found when attempting to update multus to v1.1.1; its tests use a dummy plugin output of "null" which causes a panic rather than an error.
Signed-off-by: Brad Davidson [email protected]