mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-31 21:39:10 -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
|
@ -1163,8 +1163,7 @@ def send_delete_volume_request(module, params, client, info):
|
|||
path_parameters = {
|
||||
"volume_id": ["volume_id"],
|
||||
}
|
||||
data = dict((key, navigate_value(info, path))
|
||||
for key, path in path_parameters.items())
|
||||
data = {key: navigate_value(info, path) for key, path in path_parameters.items()}
|
||||
|
||||
url = build_path(module, "cloudservers/{id}/detachvolume/{volume_id}", data)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue