Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(map): enable import of mapdata from outside the formula #230

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Sep 6, 2021

  1. feat(map): enable import of mapdata from outside the formula

    `tplroot` can't be set correctly when the import:
    
    - is done from another top directory than the formula directory
    - the import is done `with context`
    
    In this case, the `tpldir` is set to the directory of the importer
    `.sls` file instead of the `.jinja` imported one.
    
    We force the `without context` which permits to directly use `tpldir`
    as the `tplroot` which is the directory of the imported file.
    
    BREAKING CHANGE: `map.jinja` import must use `without context`
    
    BREAKING CHANGE: `libmapstack.jinja` import must use `without context`
    
    BREAKING CHANGE: `libmatchers.jinja` import must use `without context`
    baby-gnu committed Sep 6, 2021
    Configuration menu
    Copy the full SHA
    7333bed View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1555e42 View commit details
    Browse the repository at this point in the history