mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-04 23:39:09 -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
|
@ -407,8 +407,7 @@ def async_wait_create(config, result, client, timeout):
|
|||
path_parameters = {
|
||||
"peering_id": ["peering", "id"],
|
||||
}
|
||||
data = dict((key, navigate_value(result, path))
|
||||
for key, path in path_parameters.items())
|
||||
data = {key: navigate_value(result, path) for key, path in path_parameters.items()}
|
||||
|
||||
url = build_path(module, "v2.0/vpc/peerings/{peering_id}", data)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue