mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
use dict comprehension in plugins, part 2 (#8822)
* use dict comprehension in plugins * add changelog frag
This commit is contained in:
parent
ecc048bc12
commit
7e978c77b4
21 changed files with 76 additions and 68 deletions
|
@ -135,11 +135,11 @@ from uuid import uuid4
|
|||
|
||||
|
||||
def payload_from_security_group(security_group):
|
||||
return dict(
|
||||
(k, v)
|
||||
return {
|
||||
k: v
|
||||
for k, v in security_group.items()
|
||||
if k != 'id' and v is not None
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
def present_strategy(api, security_group):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue