-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[BUG] All function from jinja
module do not support saltenv
#59300
Labels
Bug
broken, incorrect, or confusing behavior
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Comments
TeddyAndrieux
added a commit
to scality/metalk8s
that referenced
this issue
Jan 18, 2021
In salt we have a function `jinja.load_map` that retrieve a specific value from a map.jinja (same as what we do in salt SLS) but this function does not support saltenv Add a new function to retrieve information from `map.jinja` in MetalK8s context, so hardcoded map.jinja path and retrieving saltenv from version stored in the pillar Sees: saltstack/salt#59300
TeddyAndrieux
added a commit
to scality/metalk8s
that referenced
this issue
Jan 18, 2021
In salt we have a function `jinja.load_map` that retrieve a specific value from a map.jinja (same as what we do in salt SLS) but this function does not support saltenv Add a new function to retrieve information from `map.jinja` in MetalK8s context, so hardcoded map.jinja path and retrieving saltenv from version stored in the pillar Sees: saltstack/salt#59300
TeddyAndrieux
added a commit
to scality/metalk8s
that referenced
this issue
Jan 19, 2021
In salt we have a function `jinja.load_map` that retrieve a specific value from a map.jinja (same as what we do in salt SLS) but this function does not support saltenv Add a new function to retrieve information from `map.jinja` in MetalK8s context, so hardcoded map.jinja path and retrieving saltenv from version stored in the pillar Sees: saltstack/salt#59300
gdemonet
pushed a commit
to scality/metalk8s
that referenced
this issue
Feb 26, 2021
In salt we have a function `jinja.load_map` that retrieve a specific value from a map.jinja (same as what we do in salt SLS) but this function does not support saltenv Add a new function to retrieve information from `map.jinja` in MetalK8s context, so hardcoded map.jinja path and retrieving saltenv from version stored in the pillar Sees: saltstack/salt#59300 Cherry-picked from: 21a1cfa
@TeddyAndrieux we will review a PR for this as it is likely it simply hasn't been thought to do this, yet for |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
Bug
broken, incorrect, or confusing behavior
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Description
All the function of the
jinja
execution module do not supportsaltenv
argument and also do not use thesaltenv
from the configSetup
(Please provide relevant configs and/or SLS files (be sure to remove sensitive info).
Steps to Reproduce the behavior
(Include debug logs if possible and relevant)
Just try to use any function of the
jinja
execution module when your file sit in a saltenv different frombase
E.g.:
minion config
A simple yaml file
Trying to get this yaml using
jinja.import_yaml
is impossible since it does not sit inbase
saltenvExpected behavior
Honor saltenv from minion config and ideally add a
saltenv
argument to the functionScreenshots
If applicable, add screenshots to help explain your problem.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Additional context
IMHO jinja function should have the same behavior as
slsutil.renderer
function (and maybe this module should directly use theslsutil.renderer
function)The text was updated successfully, but these errors were encountered: