mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
VMware: vmware_guest_disk support for use_instance_uuid (#56107)
All vmware_guest_* module support for use_instance_uuid from Ansible 2.8, somehow vmware_guest_disk missed from this change. This fix adds support for use_instance_uuid in vmware_guest_disk. Fixes: #56021 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
9f86257a65
commit
7e6be4e634
3 changed files with 12 additions and 3 deletions
|
@ -60,6 +60,12 @@ options:
|
|||
description:
|
||||
- The datacenter name to which virtual machine belongs to.
|
||||
required: True
|
||||
use_instance_uuid:
|
||||
description:
|
||||
- Whether to use the VMWare instance UUID rather than the BIOS UUID.
|
||||
default: no
|
||||
type: bool
|
||||
version_added: '2.8'
|
||||
disk:
|
||||
description:
|
||||
- A list of disks to add.
|
||||
|
@ -630,6 +636,7 @@ def main():
|
|||
folder=dict(type='str'),
|
||||
datacenter=dict(type='str', required=True),
|
||||
disk=dict(type='list', default=[]),
|
||||
use_instance_uuid=dict(type='bool', default=False),
|
||||
)
|
||||
module = AnsibleModule(argument_spec=argument_spec,
|
||||
required_one_of=[['name', 'uuid']])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue