Skip to content

Conversation

@rlenferink
Copy link
Contributor

Update the error message for the merge_variables lookup plugin in case an unsupported type is passed.

SUMMARY

Improve the failure message in case an not-allowed type is specified.
This allows our users to find errors in plugins early on (e.g. where an input variable with an undefined jinja2 filter is passed).

ISSUE TYPE
  • Bugfix Pull Request
  • Docs Pull Request

Not sure whether it is docs or bugfix, since it is mainly inline documentation.

COMPONENT NAME

merge_variables

ADDITIONAL INFORMATION

N.A.

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug lookup lookup plugin plugins plugin (any type) small_patch Hopefully easy to review labels Nov 11, 2025
Copy link
Collaborator

@russoz russoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @rlenferink Thank you for the contribution! Please add a changelog fragment.

@russoz
Copy link
Collaborator

russoz commented Nov 11, 2025

Without splitting semantic hairs, for our processes this is neither a Documentation (it actually changes the code behaviour) nor a Bug fix (it is not fixing something that was promised and not delivered), this is actually a new Feature. Just for the record.

Update the error message for the merge_variables lookup plugin in case an unsupported type is passed.
@ansibullbot ansibullbot removed the small_patch Hopefully easy to review label Nov 11, 2025
@rlenferink
Copy link
Contributor Author

Hi @russoz ! Thanks for reviewing! I have just added a changelog fragment for this.

Also thanks for explaining the rationale on how the change is seen (docs vs bugfix vs new feature). I was indeed unsure about this; so with that in mind I picked the minor_changes option in the changelog fragment.

Copy link
Collaborator

@russoz russoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-12 Automatically create a backport for the stable-12 branch labels Nov 11, 2025
Copy link
Contributor

@alpex8 alpex8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good improvement, thanks!

@felixfontein felixfontein merged commit e20e32b into ansible-collections:main Nov 16, 2025
134 checks passed
@patchback
Copy link

patchback bot commented Nov 16, 2025

Backport to stable-12: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-12/e20e32bb87346d8220acafaedf5c0093c75f5832/pr-11107

Backported as #11166

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Nov 16, 2025
patchback bot pushed a commit that referenced this pull request Nov 16, 2025
merge_variables: extend type detection failure message

Update the error message for the merge_variables lookup plugin in case an unsupported type is passed.

(cherry picked from commit e20e32b)
@felixfontein
Copy link
Collaborator

@rlenferink thanks for your contribution!
@m-a-r-k-e @russoz @alpex8 thanks for reviewing!

@rlenferink rlenferink deleted the patch-1 branch November 16, 2025 12:48
felixfontein pushed a commit to felixfontein/community.general that referenced this pull request Nov 16, 2025
…llections#11107)

merge_variables: extend type detection failure message

Update the error message for the merge_variables lookup plugin in case an unsupported type is passed.
felixfontein pushed a commit to felixfontein/community.general that referenced this pull request Nov 16, 2025
…llections#11107)

merge_variables: extend type detection failure message

Update the error message for the merge_variables lookup plugin in case an unsupported type is passed.
felixfontein pushed a commit that referenced this pull request Nov 17, 2025
…erge_variables type detection (#11166)

Extend failure message for merge_variables type detection (#11107)

merge_variables: extend type detection failure message

Update the error message for the merge_variables lookup plugin in case an unsupported type is passed.

(cherry picked from commit e20e32b)

Co-authored-by: Roy Lenferink <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-12 Automatically create a backport for the stable-12 branch bug This issue/PR relates to a bug lookup lookup plugin plugins plugin (any type)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants