Skip to content

Add ifelse function as found in CFEngine#62509

Merged
Ch3LL merged 5 commits intosaltstack:masterfrom
nicholasmhughes:add-ifelse-jinja-filter
Sep 21, 2022
Merged

Add ifelse function as found in CFEngine#62509
Ch3LL merged 5 commits intosaltstack:masterfrom
nicholasmhughes:add-ifelse-jinja-filter

Conversation

@nicholasmhughes
Copy link
Copy Markdown
Contributor

What does this PR do?

See issue for details.

What issues does this PR fix or reference?

Fixes: #62508

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@nicholasmhughes nicholasmhughes requested a review from a team as a code owner August 22, 2022 23:03
@nicholasmhughes nicholasmhughes requested review from dwoz and removed request for a team August 22, 2022 23:03
@nicholasmhughes nicholasmhughes added the Sulfur v3006.0 release code name and version label Aug 23, 2022
@nicholasmhughes
Copy link
Copy Markdown
Contributor Author

re-run pr-ubuntu-2004-amd64-py3-m2crypto-pytest

@Ch3LL Ch3LL requested a review from whytewolf September 20, 2022 20:03
@whytewolf
Copy link
Copy Markdown
Collaborator

I'm confused. is this only meant to be a Jinja function? if so it doesn't belong in modules.match. but if it is meant to be more than just a jinja function the wording on the docstring needs to be updated to show how it can be useful outside ofjinja as well.

@nicholasmhughes
Copy link
Copy Markdown
Contributor Author

I'm not sure what needs to be updated in the docstring... It has a command line example. Can you provide some direction on what you think should be updated?

@nicholasmhughes nicholasmhughes changed the title Add ifelse Jinja function as found in CFEngine Add ifelse function as found in CFEngine Sep 21, 2022
@whytewolf
Copy link
Copy Markdown
Collaborator

You are correct, not sure what i was thinking about. Yes you are correct the module does have an example for inline use.

@Ch3LL Ch3LL merged commit eab3640 into saltstack:master Sep 21, 2022
@nicholasmhughes nicholasmhughes deleted the add-ifelse-jinja-filter branch September 21, 2022 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Sulfur v3006.0 release code name and version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants