-
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 dict comprehension in plugins, part 2 #8822
use dict comprehension in plugins, part 2 #8822
Conversation
cc @Ajpantuso @Akasurde @DenBeke @Lunik @Nosmoht @QijunPan @Shaps @Thulium-Drake @TommyLike @UnderGreen @abarbare @ahtik @bcoca @Bhavya06 @cloudnull @edisonxiang @eikef @evrardjp @fishman @freesky-edward @helldorado @huaweicloud @hwDCN @jasperla @joshainglis @jpdasma @justchris1 @jyundt @karmab @krauthosting @laurpaum @lgatellier @marwatk @mator @mattock @metanovii @mraineri @ndclt @nejch @niuzhenguo @ovcharenko @pyykkis @rajeevkallur @remyleone @renxulei @scathatheworm @scodeman @sh0shin @suukit @thomasbach-dev @tomasg2012 @troy2914 @waheedi @xen0l @xmadsen @xuxiaowei0512 @yanzhangi @zanssa @zengchen1024 @zhongjun2 |
Backport to stable-9: 💚 backport PR created✅ Backport PR branch: Backported as #8832 🤖 @patchback |
@russoz thanks! |
* use dict comprehension in plugins * add changelog frag (cherry picked from commit 7e978c7)
* use dict comprehension in plugins * add changelog frag
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/lookup/credstash.py
plugins/module_utils/identity/keycloak/keycloak.py
plugins/module_utils/mh/deco.py
plugins/module_utils/redfish_utils.py
plugins/module_utils/scaleway.py
plugins/modules/etcd3.py
plugins/modules/gitlab_project.py
plugins/modules/hwc_ecs_instance.py
plugins/modules/hwc_evs_disk.py
plugins/modules/hwc_vpc_eip.py
plugins/modules/hwc_vpc_peering_connect.py
plugins/modules/hwc_vpc_port.py
plugins/modules/hwc_vpc_subnet.py
plugins/modules/ipa_otptoken.py
plugins/modules/keycloak_user_federation.py
plugins/modules/lxc_container.py
plugins/modules/proxmox_kvm.py
plugins/modules/scaleway_security_group.py
plugins/modules/ufw.py
plugins/modules/vmadm.py