From f08c29924ec58edb415cb69eec9a55ac59656b3d Mon Sep 17 00:00:00 2001 From: Joerg Kastning Date: Mon, 28 Aug 2017 18:42:27 +0200 Subject: [PATCH] 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. --- lib/ansible/modules/cloud/vmware/vmware_guest_snapshot.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/ansible/modules/cloud/vmware/vmware_guest_snapshot.py b/lib/ansible/modules/cloud/vmware/vmware_guest_snapshot.py index fdd4287c4da..a269012aaf2 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_guest_snapshot.py +++ b/lib/ansible/modules/cloud/vmware/vmware_guest_snapshot.py @@ -110,6 +110,8 @@ EXAMPLES = ''' hostname: 192.168.1.209 username: administrator@vsphere.local password: vmware + datacenter: datacenter_name + folder: /myfolder name: dummy_vm state: present snapshot_name: snap1 @@ -122,6 +124,8 @@ EXAMPLES = ''' username: administrator@vsphere.local password: vmware name: dummy_vm + datacenter: datacenter_name + folder: /myfolder state: remove snapshot_name: snap1 delegate_to: localhost @@ -131,6 +135,8 @@ EXAMPLES = ''' hostname: 192.168.1.209 username: administrator@vsphere.local password: vmware + datacenter: datacenter_name + folder: /myfolder name: dummy_vm state: revert snapshot_name: snap1 @@ -141,6 +147,8 @@ EXAMPLES = ''' hostname: 192.168.1.209 username: administrator@vsphere.local password: vmware + datacenter: datacenter_name + folder: /myfolder name: dummy_vm state: remove_all delegate_to: localhost