-
Notifications
You must be signed in to change notification settings - Fork 87
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
Cannot parse partial configs #99
Comments
the same issue with server block - parsing returns lots of errors |
@rogueloop have not yet found another solution. |
Yeah I want to edit the file(s) I have in I could use the combine param on the Isn't putting server blocks in |
Same issue here. I wish to edit just the files in |
I do have a hack handy, I may later turn it into a full fledged python library, but here is the core idea: Instead of the default lex function, I use this one:
Where
This way I can fool the library that it's reading a partial config from a file named f"{self.template_name}.conf", without actually needing to write my config strings into a file and making sure they make sense in the context of the global |
Describe the bug
Unable to process config file with http block
To Reproduce
Parse this file:
template-config-no-http.txt
It works if you wrap it in an
http
block:template-config-http.txt
Expected behavior
Since the file is a valid partial configuration, it would be expected to have this work
Your environment
The text was updated successfully, but these errors were encountered: