Skip to content

Ensure successes don't return a msg #367

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

Merged
merged 1 commit into from
Aug 26, 2020
Merged

Ensure successes don't return a msg #367

merged 1 commit into from
Aug 26, 2020

Conversation

Zelinzky
Copy link
Contributor

The msg of the successes was being constructed by the expr.Location.Text that is returned from the queries inside the Rego package. The message was expected to be empty and most of the time it was, for some random successes the message contained the location of the policy. Fixes #361 .

Signed-off-by: Roberto L. Taborda <robert@zelinzky.dev>
@boranx boranx requested a review from jpreese August 26, 2020 10:37
@jpreese
Copy link
Member

jpreese commented Aug 26, 2020

Makes sense to me. Thanks for looking into this @Zelinzky !

@jpreese jpreese merged commit 9dfbdb9 into open-policy-agent:master Aug 26, 2020
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.

conftest test: successes returns msg when using --all-namespaces
2 participants