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

use dict comprehension in plugins, part 4 #8858

Merged

Conversation

russoz
Copy link
Collaborator

@russoz russoz commented Sep 13, 2024

SUMMARY

Another PR to mass-replace the construct dict((k, v) for k, v in d if condition) with dict comprehensions: {k: v for k, v in d if condition}

ISSUE TYPE
  • Refactoring Pull Request
COMPONENT NAME

plugins/modules/scaleway_container.py
plugins/modules/scaleway_container_info.py
plugins/modules/scaleway_container_namespace.py
plugins/modules/scaleway_container_namespace_info.py
plugins/modules/scaleway_container_registry.py
plugins/modules/scaleway_container_registry_info.py
plugins/modules/scaleway_function.py
plugins/modules/scaleway_function_info.py
plugins/modules/scaleway_function_namespace.py
plugins/modules/scaleway_function_namespace_info.py

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added module module plugins plugin (any type) labels Sep 13, 2024
@felixfontein felixfontein added the backport-9 Automatically create a backport for the stable-9 branch label Sep 13, 2024
@felixfontein felixfontein merged commit 94472dd into ansible-collections:main Sep 13, 2024
147 checks passed
Copy link

patchback bot commented Sep 13, 2024

Backport to stable-9: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-9/94472dd7e5f21823da43fae1227be6df773f58dc/pr-8858

Backported as #8865

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

patchback bot pushed a commit that referenced this pull request Sep 13, 2024
* use dict comprehension in plugins, part 4

* add changelog frag

(cherry picked from commit 94472dd)
@felixfontein
Copy link
Collaborator

@russoz thanks as well :)

@russoz russoz deleted the dict-comprehension-4 branch September 13, 2024 20:47
felixfontein pushed a commit that referenced this pull request Sep 13, 2024
…ins, part 4 (#8865)

use dict comprehension in plugins, part 4 (#8858)

* use dict comprehension in plugins, part 4

* add changelog frag

(cherry picked from commit 94472dd)

Co-authored-by: Alexei Znamensky <[email protected]>
aioue pushed a commit to aioue/community.general that referenced this pull request Oct 1, 2024
* use dict comprehension in plugins, part 4

* add changelog frag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-9 Automatically create a backport for the stable-9 branch module module plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants