ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
833 stars 1.53k forks source link

use dict comprehension in plugins, part 4 #8858

Closed russoz closed 2 months ago

russoz commented 2 months ago
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
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 commented 2 months ago

cc @Lunik @abarbare @remyleone click here for bot help

patchback[bot] commented 2 months ago

Backport to stable-9: 💚 backport PR created

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

Backported as https://github.com/ansible-collections/community.general/pull/8865

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

felixfontein commented 2 months ago

@russoz thanks as well :)