mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
use dict comprehension in plugins, part 2 (#8822)
* use dict comprehension in plugins * add changelog frag
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user