-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 a typo in _index.md #6491
Fix a typo in _index.md #6491
Conversation
✅ Deploy Preview for openpolicyagent ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for helping make the docs better! I think we'll need to do more here though 😅
@@ -1002,7 +1002,7 @@ opa run example.rego repl.input:input.json | |||
``` | |||
|
|||
```ruby | |||
> data.example.public_server[s] | |||
> data.example.public_servers[s] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rule is defined as public_server
here, though: https://github.com/open-policy-agent/opa/pull/6491/files#diff-5d9ba8bc1a568741b44ccc852748ca739d71f89dc1ac05a9f8d3787a064a549dR907
So either we keep it as-is, or change both locations (and perhaps others, if there are any).
@trungnguyen thanks for working on this. If you can address Stephan's comments above that would be great. Thanks! |
docs/content/_index.md
Outdated
@@ -904,7 +904,7 @@ violation contains server.id if { # a server is in the violati | |||
server.protocols[_] == "telnet" # it contains the "telnet" protocol. | |||
} | |||
|
|||
public_server contains server if { # a server exists in the public_server set if... | |||
public_servers contains server if { # a server exists in the public_servers set if... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is called earlier in the policy. So we would need to update that too.
Thanks for the changes @trungnguyen! Can you please squash your commits and sign them off and we can get this in. See this reference for authoring a good commit message. |
3a655ae
to
1bb8572
Compare
1bb8572
to
73b8307
Compare
65cf436
to
c49af54
Compare
Signed-off-by: Trung Nguyen <[email protected]>
missing 's' in the word 'public_server' in the code below data.example.public_server[s]
Why the changes in this PR are needed?
What are the changes in this PR?
Notes to assist PR review:
Further comments: