mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #28280 from 0xf10e/patch-1
Correct Jinja function load_* to import_*
This commit is contained in:
commit
e3eff9b909
1 changed files with 6 additions and 2 deletions
|
@ -414,13 +414,17 @@ from the Salt Master. For example:
|
|||
|
||||
{% set some_data = salt.pillar.get('some_data', {'sane default': True}) %}
|
||||
|
||||
{# or #}
|
||||
|
||||
{% import_yaml 'path/to/file.yaml' as some_data %}
|
||||
|
||||
{# or #}
|
||||
|
||||
{% load_json 'path/to/file.json' as some_data %}
|
||||
{% import_json 'path/to/file.json' as some_data %}
|
||||
|
||||
{# or #}
|
||||
|
||||
{% load_text 'path/to/ssh_key.pub' as ssh_pub_key %}
|
||||
{% import_text 'path/to/ssh_key.pub' as ssh_pub_key %}
|
||||
|
||||
{# or #}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue