diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-05 16:18:34 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-05 16:18:34 +0000 |
commit | 3667197efb7b18ec842efd504785965911f8ac4b (patch) | |
tree | 0b986a4bc6879d080b100666a97cdabbc9ca1f28 /ansible_collections/vmware/vmware_rest/plugins/modules/vcenter_vm_hardware_info.py | |
parent | Adding upstream version 9.5.1+dfsg. (diff) | |
download | ansible-upstream/10.0.0+dfsg.tar.xz ansible-upstream/10.0.0+dfsg.zip |
Adding upstream version 10.0.0+dfsg.upstream/10.0.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/vmware/vmware_rest/plugins/modules/vcenter_vm_hardware_info.py')
-rw-r--r-- | ansible_collections/vmware/vmware_rest/plugins/modules/vcenter_vm_hardware_info.py | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/ansible_collections/vmware/vmware_rest/plugins/modules/vcenter_vm_hardware_info.py b/ansible_collections/vmware/vmware_rest/plugins/modules/vcenter_vm_hardware_info.py index 96cd40fd8..54fb4e5b6 100644 --- a/ansible_collections/vmware/vmware_rest/plugins/modules/vcenter_vm_hardware_info.py +++ b/ansible_collections/vmware/vmware_rest/plugins/modules/vcenter_vm_hardware_info.py @@ -3,11 +3,8 @@ # Copyright: (c) 2021, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # template: header.j2 -# This module is autogenerated by vmware_rest_code_generator. -# See: https://github.com/ansible-collections/vmware_rest_code_generator -from __future__ import absolute_import, division, print_function - -__metaclass__ = type +# This module is autogenerated using the ansible.content_builder. +# See: https://github.com/ansible-community/ansible.content_builder DOCUMENTATION = r""" @@ -62,17 +59,19 @@ options: type: bool vm: description: - - Virtual machine identifier. Required with I(state=['get']) + - Virtual machine identifier. + - The parameter must be the id of a resource returned by M(vmware.vmware_rest.vcenter_vm_info). + Required with I(state=['get']) type: str author: - Ansible Cloud Team (@ansible-collections) version_added: 0.1.0 requirements: -- vSphere 7.0.2 or greater +- vSphere 7.0.3 or greater - python >= 3.6 - aiohttp notes: -- Tested on vSphere 7.0.2 +- Tested on vSphere 7.0.3 """ EXAMPLES = r""" @@ -105,8 +104,6 @@ PAYLOAD_FORMAT = { "get": {"query": {}, "body": {}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -121,26 +118,24 @@ try: except ImportError: from ansible.module_utils.basic import AnsibleModule from ansible_collections.vmware.vmware_rest.plugins.module_utils.vmware_rest import ( - build_full_device_list, - exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, - update_changed_flag, session_timeout, + update_changed_flag, ) def prepare_argument_spec(): argument_spec = { "vcenter_hostname": dict( - type="str", required=True, fallback=(env_fallback, ["VMWARE_HOST"]), + type="str", + required=True, + fallback=(env_fallback, ["VMWARE_HOST"]), ), "vcenter_username": dict( - type="str", required=True, fallback=(env_fallback, ["VMWARE_USER"]), + type="str", + required=True, + fallback=(env_fallback, ["VMWARE_USER"]), ), "vcenter_password": dict( type="str", |