Skip to content

Commit

Permalink
refactor(map.jinja): standardise v5 structure [skip ci]
Browse files Browse the repository at this point in the history
* Automated using myii/ssf-formula#382
  • Loading branch information
myii committed Oct 26, 2021
1 parent baae08d commit 10db716
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@
/docs/CHANGELOG.rst @saltstack-formulas/ssf
/docs/TOFS_pattern.rst @saltstack-formulas/ssf
/*/_mapdata/ @saltstack-formulas/ssf
/*/libmapstack.jinja @saltstack-formulas/ssf
/*/libmatchers.jinja @saltstack-formulas/ssf
/*/libsaltcli.jinja @saltstack-formulas/ssf
/*/libtofs.jinja @saltstack-formulas/ssf
/*/map.jinja @saltstack-formulas/ssf
/test/integration/**/_mapdata.rb @saltstack-formulas/ssf
/test/integration/**/libraries/system.rb @saltstack-formulas/ssf
/test/integration/**/inspec.yml @saltstack-formulas/ssf
Expand Down
2 changes: 1 addition & 1 deletion cert/libmapstack.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

{#- `tplroot` is the directory of the current imported file #}
{%- set tplroot = tpldir %}
{%- from tplroot ~ "/libmatchers.jinja" import parse_matchers, query_map %}
{%- from tplroot ~ "/libmatchers.jinja" import parse_matchers, query_map without context %}

{%- set _default_config_dirs = [
"parameters/",
Expand Down
4 changes: 2 additions & 2 deletions cert/libmatchers.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
{{- raise("Import error: libmatchers.jinja must be imported with absolute path. tplfile='" ~ tplfile ~ "'") }}
{%- endif %}

{#- Get the `tplroot` from `tpldir` #}
{#- `tplroot` is the directory of the current imported file #}
{%- set tplroot = tpldir %}
{%- from tplroot ~ "/libsaltcli.jinja" import cli %}
{%- from tplroot ~ "/libsaltcli.jinja" import cli without context %}

{%- set query_map = {
"C": "config.get",
Expand Down

0 comments on commit 10db716

Please sign in to comment.