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

ModuleHelper - lax handling of conflicting output #5765

Merged

Conversation

russoz
Copy link
Collaborator

@russoz russoz commented Jan 5, 2023

SUMMARY

Change ModuleHelper behaviour when handling output variables using protected names, allowing the module to set them if unused by MH.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

plugins/module_utils/mh/deco.py
plugins/module_utils/mh/module_helper.py

@ansibullbot ansibullbot added feature This issue/PR relates to a feature request integration tests/integration module_utils module_utils plugins plugin (any type) tests tests labels Jan 5, 2023
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-6 labels Jan 5, 2023
@ansibullbot ansibullbot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Jan 6, 2023
@github-actions
Copy link

github-actions bot commented Jan 6, 2023

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

@ansibullbot ansibullbot removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Jan 6, 2023
@felixfontein felixfontein merged commit dc531b1 into ansible-collections:main Jan 7, 2023
@patchback
Copy link

patchback bot commented Jan 7, 2023

Backport to stable-6: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-6/dc531b183d2f1b48378ddfd3dd976e067bc02eb6/pr-5765

Backported as #5775

🤖 @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 Jan 7, 2023
patchback bot pushed a commit that referenced this pull request Jan 7, 2023
* ModuleHelper - lax handling of conflicting output

* add changelog fragment

* only create _var when really needed

* adjust changelog

* Update changelogs/fragments/5765-mh-lax-output-conflict.yml

Co-authored-by: Felix Fontein <[email protected]>

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit dc531b1)
@felixfontein
Copy link
Collaborator

@russoz thanks!

@russoz russoz deleted the mh-output-conflict-lax branch January 7, 2023 09:34
felixfontein pushed a commit that referenced this pull request Jan 7, 2023
… conflicting output (#5775)

ModuleHelper - lax handling of conflicting output (#5765)

* ModuleHelper - lax handling of conflicting output

* add changelog fragment

* only create _var when really needed

* adjust changelog

* Update changelogs/fragments/5765-mh-lax-output-conflict.yml

Co-authored-by: Felix Fontein <[email protected]>

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit dc531b1)

Co-authored-by: Alexei Znamensky <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request integration tests/integration module_utils module_utils plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants