-
Notifications
You must be signed in to change notification settings - Fork 82
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
Documented config format invalid #1081
Comments
when config file is indented with 4 spaces instead of 2 the file loads, no problem. if indentation is done with 2 spaces, config refuses to load with error. |
I found success this way
The way the current config works is its using yaml-like syntax so there are some strange behaviors with it. I have a PR out right now to use traditional yaml syntax for our configuations here: #1043 |
The current configuration file is valid YAML, not just "YAML-like" syntax, I think. This is invalid configuration and JSONed version: - control-service:
service: control
filename: /tmp/foo.sock [
{
"control-service": null,
"service": "control",
"filename": "/tmp/foo.sock"
}
] This is valid configuration and JSONed version: - control-service:
service: control
filename: /tmp/foo.sock [
{
"control-service": {
"service": "control",
"filename": "/tmp/foo.sock"
}
}
] In the invalid configuration, all three keys are at the same level. Since However, the indentation in the example in the documentation is indeed incorrect and should be fixed: https://ansible.readthedocs.io/projects/receptor/en/latest/getting_started_guide/creating_a_basic_network.html |
I will check again doing indentation with 2 spaces, but initial tests show it MUST BE 4 spaces or errors show up. |
no matter the content of the config file for receptor, I always get:
The text was updated successfully, but these errors were encountered: