-
Notifications
You must be signed in to change notification settings - Fork 200
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
The NGINX lens reports "types" as a syntax error incorrectly #834
Comments
hello, Line 49 in 89d7bc4
It's removing the / to save the mask of the IP and it wants an integer. Replace plain with 24 and it will work.
A quick fix will be to replace the mask with:
and you'll obtain something like:
But, IHO, is not clean and it will break something if users do math op with the mask or
@georgehansper WDYT |
tupyy
added a commit
to tupyy/augeas
that referenced
this issue
Aug 27, 2024
This commit allow types block to be parsed. Fixes: hercules-team#834. Signed-off-by: Cosmin Tupangiu <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Place the following as
/etc/nginx/conf.d/test.conf
:Ensure it is parsed by Nginx:
As you can see, the
types
directive as a block is perfectly valid and a block is expected per the example in Nginx documentation.Now try to load it.
The obvious reason is that
type
is not noted as a block directive (neither inblock_re
norblock_re_all
). However, unlike otherblock_re_all
, it only has the form of<directive> <block>
, there are no args.I tried fiddling with the lens a bit but wasn't able to get it to properly pull in the block itself.
The text was updated successfully, but these errors were encountered: