Closed seiichiro0185 closed 2 months ago
This is an issue with the template rendering not handling boolean when they are nested into dictionary. You might be able to workaround this issue by quoting the values like "True"
instead of True
.
Anyway this needs a fix.
Thanks for the quick fix, I can confirm that it works now.
Hi there, first of all thanks for creating this role. I am trying to add some config values for a plugin via the netbox_config variable, and it isn't giving the expected results. I'm not sure if this is a real bug, or if I just haven't found the correct syntax yet.
I have the following in my host_vars file for the netbox Host:
Everything up to the PLUGINS part renders correctly in the generated config. Unfortunately the "PLUGINS_CONFIG" part does not.
The correct config options would be like this:
But what I actually get is this:
Note the lowercase "true" - this does not work, netbox won't start like this. I also tried lowercase true in the yaml with the same result, and also quoting the "True" with single or double quotes in the yaml, which renders the quotes into the generated configuration, which does not work as well. Am I missing something here? Is there a special Syntax to get this to work?
Thanks in advance for any hints on solving this.