Added folder and datacenter to the examples (#25221)
* Added folder and datacenter to the examples From #22644 it seems that the parameter 'folder' is mandatory. While both are required parameters they should be used in the examples. * Removed 'required: True' from folder documentation I reverted the documentation of the folder option to be a not required one. This way it stays consistent with the definition of the function.
This commit is contained in:
parent
3c65c2bfaf
commit
f08c29924e
1 changed files with 8 additions and 0 deletions
|
@ -110,6 +110,8 @@ EXAMPLES = '''
|
||||||
hostname: 192.168.1.209
|
hostname: 192.168.1.209
|
||||||
username: administrator@vsphere.local
|
username: administrator@vsphere.local
|
||||||
password: vmware
|
password: vmware
|
||||||
|
datacenter: datacenter_name
|
||||||
|
folder: /myfolder
|
||||||
name: dummy_vm
|
name: dummy_vm
|
||||||
state: present
|
state: present
|
||||||
snapshot_name: snap1
|
snapshot_name: snap1
|
||||||
|
@ -122,6 +124,8 @@ EXAMPLES = '''
|
||||||
username: administrator@vsphere.local
|
username: administrator@vsphere.local
|
||||||
password: vmware
|
password: vmware
|
||||||
name: dummy_vm
|
name: dummy_vm
|
||||||
|
datacenter: datacenter_name
|
||||||
|
folder: /myfolder
|
||||||
state: remove
|
state: remove
|
||||||
snapshot_name: snap1
|
snapshot_name: snap1
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
@ -131,6 +135,8 @@ EXAMPLES = '''
|
||||||
hostname: 192.168.1.209
|
hostname: 192.168.1.209
|
||||||
username: administrator@vsphere.local
|
username: administrator@vsphere.local
|
||||||
password: vmware
|
password: vmware
|
||||||
|
datacenter: datacenter_name
|
||||||
|
folder: /myfolder
|
||||||
name: dummy_vm
|
name: dummy_vm
|
||||||
state: revert
|
state: revert
|
||||||
snapshot_name: snap1
|
snapshot_name: snap1
|
||||||
|
@ -141,6 +147,8 @@ EXAMPLES = '''
|
||||||
hostname: 192.168.1.209
|
hostname: 192.168.1.209
|
||||||
username: administrator@vsphere.local
|
username: administrator@vsphere.local
|
||||||
password: vmware
|
password: vmware
|
||||||
|
datacenter: datacenter_name
|
||||||
|
folder: /myfolder
|
||||||
name: dummy_vm
|
name: dummy_vm
|
||||||
state: remove_all
|
state: remove_all
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
Loading…
Reference in a new issue