nautobot-app-golden-config
nautobot-app-golden-config copied to clipboard
Secrets rendering in post-processing errors out in GC 1.6.4
Environment
- Python version: 3.9.
- Nautobot version: 1.6.10
- nautobot-golden-config version: 1.6.4
Expected Behavior
secrets are rendered in the postprocessed config
Observed Behavior
error "Jinja encountered an TemplateAssertionError: 'No filter named 'get_secret_by_secret_group_name'.'; check the template for correctness"
Steps to Reproduce
seems to affect only nautobot 1.X
- use the template:
device name: {{ hostname }}
snmp-server community {% raw %}{{ hostname | get_secret_by_secret_group_name("key") | default('no password') }}{% endraw %}
- run the "Generate Intended Configurations" job
- go to the device page and click on the "Configuration Postprocessing" icon, or call the /plugins/golden-config/config-postprocessing/ API