Fixed incorrect request body when creating VM snapshot with disks (#67815)

* Fixed incorrect request body when creating VM snapshot with disks

* fixed changlog file extension
pull/67868/head
nemethloci 5 years ago committed by GitHub
parent b84dc2f2a6
commit a76d78f691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- "Fixed explicit disk arguments not resulting in disk snapshots in VM snapshot at all"

@ -367,7 +367,7 @@ def create_snapshot(module, vm_service, snapshots_service, connection):
otypes.Snapshot(
description=module.params.get('description'),
persist_memorystate=module.params.get('use_memory'),
disk_attachments=[otypes.DiskAttachment(id=da_id) for da_id in disk_attachments_id] if disk_attachments_id else None
disk_attachments=[otypes.DiskAttachment(disk=otypes.Disk(id=da_id)) for da_id in disk_attachments_id] if disk_attachments_id else None
)
)
changed = True

Loading…
Cancel
Save