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: examples/compose - a deny rule was incorrectly implemented #841

Merged

Conversation

dennisg
Copy link
Contributor

@dennisg dennisg commented Jul 4, 2023

The conversion to a number of the version string evaluated to a boolean. Subsequently the boolean was compared to a number, which always resulted in a failure to comply to that rule.

This PR fixes the conversion error so that the comparison now works as expected. This PR also adds some tests to prevent regression.

The conversion to a number of the version string evaluated to a boolean.
Subsequently the boolean was compared to a number, which always resulted in
a failure to comply to that rule.

This PR fixes the conversion error so that the comparison now works as expected.
This PR also adds some tests to prevent regression.

Signed-off-by: Dennis Geurts <github@dennisg.nl>
Copy link

@charlieegan3 charlieegan3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, thanks for taking the time to patch it up in a PR 🙂

Copy link
Member

@jalseth jalseth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@jalseth jalseth merged commit a6c6055 into open-policy-agent:master Jul 8, 2023
8 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

3 participants