1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix issue in activating the VM disk while attaching disk

Currently <active> tag is passed within the disk element which is
incorrect. As a result, disk will remain inactive even though the
default option is true.
This commit is contained in:
Nijin Ashok 2016-10-30 17:56:45 +05:30 committed by Matt Clay
parent 80f622a075
commit b55c973444

View file

@ -532,8 +532,8 @@ class VmsModule(BaseModule):
otypes.DiskAttachment(
disk=otypes.Disk(
id=disk_id,
active=disk.get('activate', True),
),
active=disk.get('activate', True),
interface=otypes.DiskInterface(
disk.get('interface', 'virtio')
),