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

units.parse_bytes: add E* and P* units #3692

Merged

Conversation

srenatus
Copy link
Contributor

Previous changes to the built-in function to use big.Int et al. had
been made without knowledge of these missing units. So, here they are.

Fixes #2911.

Previous changes to the built-in function to use big.Int et al. had
been made without knowledge of these missing units. So, here they are.

Fixes open-policy-agent#2911.

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
@srenatus srenatus marked this pull request as ready for review July 30, 2021 16:17
@srenatus srenatus merged commit 8fc2ba1 into open-policy-agent:main Jul 31, 2021
@srenatus srenatus deleted the sr/units.parse_bytes/add-P-and-E branch July 31, 2021 07:29
dolevf pushed a commit to dolevf/opa that referenced this pull request Nov 4, 2021
Previous changes to the built-in function to use big.Int et al. had
been made without knowledge of these missing units. So, here they are.

Fixes open-policy-agent#2911.

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
Signed-off-by: Dolev Farhi <farhi.dolev@gmail.com>
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.

units.parse_bytes does not support P, and E (and corresponding binary) suffixes
2 participants