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

[FEATURE REQUEST] add "ifelse" Jinja function as found in CFEngine #62508

Closed
nicholasmhughes opened this issue Aug 22, 2022 · 0 comments · Fixed by #62509
Closed

[FEATURE REQUEST] add "ifelse" Jinja function as found in CFEngine #62508

nicholasmhughes opened this issue Aug 22, 2022 · 0 comments · Fixed by #62509
Labels
Feature new functionality including changes to functionality and code refactors, etc.

Comments

@nicholasmhughes
Copy link
Collaborator

Describe the solution you'd like
Some users transitioning over from CFEngine have expressed a desire to have functionality similar to the ifelse function found in CFEngine.

Describe alternatives you've considered
The concept is very similar to match.filter_by, but necessitates adding all items into a dictionary in order to perform the evaluation.

Additional context
Providing this functionality should be pretty low effort considering it could be a wrapper that passes to match.filter_by.

Please Note
If this feature request would be considered a substantial change or addition, this should go through a SEP process here https://github.com/saltstack/salt-enhancement-proposals, instead of a feature request.

@nicholasmhughes nicholasmhughes added the Feature new functionality including changes to functionality and code refactors, etc. label Aug 22, 2022
nicholasmhughes added a commit to nicholasmhughes/salt that referenced this issue Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new functionality including changes to functionality and code refactors, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant