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 query to path conversion in decision logger #784

Merged
merged 1 commit into from
Jun 13, 2018

Conversation

tsandall
Copy link
Member

The decision logger was using strings.TrimLeft when it should have been
using strings.TrimPrefix. As a result, the prefix was not being trimmed
correctly--leading characters in the cutset "data." were being removed.

Fixes #783

The decision logger was using strings.TrimLeft when it should have been
using strings.TrimPrefix. As a result, the prefix was not being trimmed
correctly--leading characters in the cutset "data." were being removed.

Fixes open-policy-agent#783

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
@tsandall
Copy link
Member Author

/cc @ashutosh-narkar

@tsandall tsandall merged commit db708b8 into open-policy-agent:master Jun 13, 2018
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.

Decision log plugin trimming query prefix incorrectly
1 participant