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

[PR #8858/94472dd7 backport][stable-9] use dict comprehension in plugins, part 4 #8865

Closed patchback[bot] closed 2 months ago

patchback[bot] commented 2 months ago

This is a backport of PR #8858 as merged into main (94472dd7e5f21823da43fae1227be6df773f58dc).

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