You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could be the expected behaviour although if so it is confusing and some of the code in the Reader class also seems to imply that the author expected these extensions to be available.
It could be a bug or something that requires better docs.
Your environment
version of sceptre (sceptre --version) latest
version of python (python --version) 3.10
which OS/distro ubuntu
Steps to reproduce
See above.
Expected behaviour
I expected this to work and the regex_replace filter to be available.
Actual behaviour
sceptre.exceptions.SceptreException: config.yaml - No filter named 'regex_replace'.
The text was updated successfully, but these errors were encountered:
@zaro0508 yes and yes. It's definitely a bug or at least undocumented behaviour. For obvious reasons, the custom J2 extensions cannot be loaded at the time of the first layer of J2 rendering that renders the config.yaml itself in the reader class.
Subject of the issue
Attempting to use J2 extensions such as this fails:
j2_environment: extensions: - jinja2_ansible_filters.AnsibleCoreFiltersExtension project_code: "{{ var.BucketName | regex_replace('^[^a-zA-Z]+', '') }}"
This could be the expected behaviour although if so it is confusing and some of the code in the Reader class also seems to imply that the author expected these extensions to be available.
It could be a bug or something that requires better docs.
Your environment
Steps to reproduce
See above.
Expected behaviour
I expected this to work and the regex_replace filter to be available.
Actual behaviour
The text was updated successfully, but these errors were encountered: