diff --git a/changelogs/fragments/vmware_guest_custom_attributes.yml b/changelogs/fragments/vmware_guest_custom_attributes.yml new file mode 100644 index 00000000000..1401b028b91 --- /dev/null +++ b/changelogs/fragments/vmware_guest_custom_attributes.yml @@ -0,0 +1,2 @@ +minor_changes: + - vmware_guest_custom_attributes does not require VM name (https://github.com/ansible/ansible/issues/63222). diff --git a/docs/docsite/rst/porting_guides/porting_guide_2.10.rst b/docs/docsite/rst/porting_guides/porting_guide_2.10.rst index 07f87b494e6..716dcfc5651 100644 --- a/docs/docsite/rst/porting_guides/porting_guide_2.10.rst +++ b/docs/docsite/rst/porting_guides/porting_guide_2.10.rst @@ -63,7 +63,7 @@ Noteworthy module changes * :ref:`vmware_host_service_manager ` now returns ``host_service_status`` instead of Ansible internal key ``results``. * :ref:`vmware_tag ` now returns ``tag_status`` instead of Ansible internal key ``results``. * The deprecated ``recurse`` option in :ref:`pacman ` module has been removed, you should use ``extra_args=--recursive`` instead. - +* :ref:`vmware_guest_custom_attributes ` module does not require VM name which was a required parameter for releases prior to Ansible 2.10. Plugins ======= diff --git a/lib/ansible/modules/cloud/vmware/vmware_guest_custom_attributes.py b/lib/ansible/modules/cloud/vmware/vmware_guest_custom_attributes.py index 3f5becc3484..e55a3ad7542 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_guest_custom_attributes.py +++ b/lib/ansible/modules/cloud/vmware/vmware_guest_custom_attributes.py @@ -37,7 +37,6 @@ options: description: - Name of the virtual machine to work with. - This is required parameter, if C(uuid) or C(moid) is not supplied. - required: True type: str state: description: @@ -206,7 +205,7 @@ def main(): argument_spec = vmware_argument_spec() argument_spec.update( datacenter=dict(type='str'), - name=dict(required=True, type='str'), + name=dict(type='str'), folder=dict(type='str'), uuid=dict(type='str'), moid=dict(type='str'),