Skip to content
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 if condition for netns override #1038

Merged
merged 3 commits into from Nov 20, 2023

Conversation

s1061123
Copy link
Contributor

Current skel.go code's if strings.ToUpper(cmdArgs.NetnsOverride) != "TRUE" || cmdArgs.NetnsOverride != "1" always true (see De Morgan's laws).
This change fixes that to skip this if code if 'NetnsOverride' is "TRUE" or "1".

@coveralls
Copy link

coveralls commented Oct 31, 2023

Coverage Status

coverage: 71.573%. remained the same
when pulling 26cfdbe on s1061123:fix-netnsoverride
into cf9ca9e on containernetworking:main.

Signed-off-by: Tomofumi Hayashi <tohayash@redhat.com>
@dcbw dcbw merged commit 93878e6 into containernetworking:main Nov 20, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants