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 bool attribute equality #3688

Merged

Conversation

blakeroberts-wk
Copy link
Contributor

Description:

Fix a bug - Getting the bool value of a non-bool attribute returns false; therefore, equality of a false bool attribute and any non-bool attribute returned true. To fix this issue, the equality of attributes should assert the two attributes share a type.

Testing:

The respective unit test was updated to ensure this edge case was hit.

@blakeroberts-wk blakeroberts-wk requested a review from a team as a code owner July 21, 2021 18:10
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jul 21, 2021

CLA Signed

The committers are authorized under a signed CLA.

@project-bot project-bot bot added this to In progress in Collector Jul 21, 2021
Collector automation moved this from In progress to Reviewer approved Jul 21, 2021
@bogdandrutu bogdandrutu merged commit 6cce422 into open-telemetry:main Jul 21, 2021
Collector automation moved this from Reviewer approved to Done Jul 21, 2021
mxiamxia pushed a commit to mxiamxia/opentelemetry-collector that referenced this pull request Jul 22, 2021
@blakeroberts-wk blakeroberts-wk deleted the fix-bool-attribute-equality branch July 22, 2021 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Collector
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants