-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
use open() as context manager #9579
Merged
felixfontein
merged 2 commits into
ansible-collections:main
from
russoz-ansible:with-open
Jan 21, 2025
Merged
use open() as context manager #9579
felixfontein
merged 2 commits into
ansible-collections:main
from
russoz-ansible:with-open
Jan 21, 2025
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
ansibullbot
added
module
module
module_utils
module_utils
plugins
plugin (any type)
redhat_subscription
tests
tests
unit
tests/unit
labels
Jan 16, 2025
The changes in |
felixfontein
added
check-before-release
PR will be looked at again shortly before release and merged if possible.
backport-10
Automatically create a backport for the stable-10 branch
labels
Jan 18, 2025
felixfontein
approved these changes
Jan 18, 2025
felixfontein
removed
the
check-before-release
PR will be looked at again shortly before release and merged if possible.
label
Jan 21, 2025
Backport to stable-10: 💚 backport PR created✅ Backport PR branch: Backported as #9596 🤖 @patchback |
patchback bot
pushed a commit
that referenced
this pull request
Jan 21, 2025
* use open() as context manager * add changelog frag (cherry picked from commit 0de39a6)
felixfontein
pushed a commit
that referenced
this pull request
Jan 21, 2025
…#9596) use open() as context manager (#9579) * use open() as context manager * add changelog frag (cherry picked from commit 0de39a6) 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
backport-10
Automatically create a backport for the stable-10 branch
module_utils
module_utils
module
module
plugins
plugin (any type)
redhat_subscription
tests
tests
unit
tests/unit
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
Use open as a context manager, as a good practice.
ISSUE TYPE
COMPONENT NAME
plugins/module_utils/known_hosts.py
plugins/modules/cloud_init_data_facts.py
plugins/modules/cronvar.py
plugins/modules/crypttab.py
plugins/modules/parted.py
plugins/modules/pulp_repo.py
plugins/modules/redhat_subscription.py
plugins/modules/solaris_zone.py
plugins/modules/sorcery.py
plugins/modules/timezone.py
tests/unit/plugins/inventory/test_iocage.py
tests/unit/plugins/modules/test_wdc_redfish_command.py