-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Add the key_name/value_name options to the dict2items filter #45550
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As with items2dict, allow users to configure the key/value name for dict2items
As with items2dict, allow users to configure the key/value name for dict2items
ansibot
added
affects_2.8
This issue/PR affects Ansible v2.8
docs
This issue/PR relates to or includes documentation.
feature
This issue/PR relates to a feature request.
needs_triage
Needs a first human triage before being processed.
new_contributor
This PR is the first contribution by a new community member.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
labels
Sep 12, 2018
rwanyoike
changed the title
Add the key_name/value_name options to dict2items
Add the key_name/value_name options to the dict2items filter
Sep 12, 2018
ansibot
added
the
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
label
Sep 12, 2018
jborean93
removed
the
needs_triage
Needs a first human triage before being processed.
label
Sep 13, 2018
ansibot
removed
the
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
label
Sep 13, 2018
what is the use case for this? FYI the filter was created to act like the |
@bcoca a happy misuse of A workflow to turn: foobar:
boss: /tmp/su99
noop: /tmp/3311 into a - file: boss
path: /tmp/su99
- file: noop
path: /tmp/3311 would require extra step(s) to remap the {{ dict | dict2items }} ... it comes so close. |
make that the example and also note 'version added' in docs |
ansibot
added
the
support:community
This issue/PR relates to code supported by the Ansible community.
label
Sep 14, 2018
bcoca
reviewed
Sep 14, 2018
ansibot
added
the
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
label
Sep 17, 2018
bcoca
approved these changes
Sep 17, 2018
ansibot
removed
the
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
label
Sep 17, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.8
This issue/PR affects Ansible v2.8
docs
This issue/PR relates to or includes documentation.
feature
This issue/PR relates to a feature request.
new_contributor
This PR is the first contribution by a new community member.
support:community
This issue/PR relates to code supported by the Ansible community.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
As with the
items2dict
filter, allow users to configure the key/value name fordict2items
.ISSUE TYPE
COMPONENT NAME
dict2items
ANSIBLE VERSION
ADDITIONAL INFORMATION