document regex_replace
Jinja filter
#48952
Labels
Bug
broken, incorrect, or confusing behavior
Documentation
Relates to Salt documentation
P3
Priority 3
severity-low
4th level, cosemtic problems, work around exists
Milestone
Description of Issue/Question
The "Understanding Jinja" section documents and lists
regex_match
andregex_search
but notregex_replace
. However, that function is actually present insalt/utils/jinja.py
and works just fine.It should really be documented. I've been Googling for ways to regex-replace in Jinja several times now, seeing as the documentation stated such a function doesn't exist, and only a look under the hood (into
jinja.py
) revealed that it does exist after all.Steps to Reproduce Issue
Small test state that shows the function works just fine:
Saving this as
testme.sls
& executing it (salt-call testme
) will create/tmp/healeay
as expected.Versions Report
The text was updated successfully, but these errors were encountered: