mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
[PR #8822/7e978c77 backport][stable-9] use dict comprehension in plugins, part 2 (#8832)
use dict comprehension in plugins, part 2 (#8822)
* use dict comprehension in plugins
* add changelog frag
(cherry picked from commit 7e978c77b4)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
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