mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07: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:
parent
80f622a075
commit
b55c973444
1 changed files with 1 additions and 1 deletions
|
@ -532,8 +532,8 @@ class VmsModule(BaseModule):
|
||||||
otypes.DiskAttachment(
|
otypes.DiskAttachment(
|
||||||
disk=otypes.Disk(
|
disk=otypes.Disk(
|
||||||
id=disk_id,
|
id=disk_id,
|
||||||
active=disk.get('activate', True),
|
|
||||||
),
|
),
|
||||||
|
active=disk.get('activate', True),
|
||||||
interface=otypes.DiskInterface(
|
interface=otypes.DiskInterface(
|
||||||
disk.get('interface', 'virtio')
|
disk.get('interface', 'virtio')
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue