diff options
Diffstat (limited to 'ansible_collections/vmware/vmware_rest/plugins/modules/appliance_system_time_timezone.py')
-rw-r--r-- | ansible_collections/vmware/vmware_rest/plugins/modules/appliance_system_time_timezone.py | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/ansible_collections/vmware/vmware_rest/plugins/modules/appliance_system_time_timezone.py b/ansible_collections/vmware/vmware_rest/plugins/modules/appliance_system_time_timezone.py index f71ce8cf4..361cc68c8 100644 --- a/ansible_collections/vmware/vmware_rest/plugins/modules/appliance_system_time_timezone.py +++ b/ansible_collections/vmware/vmware_rest/plugins/modules/appliance_system_time_timezone.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""" @@ -75,11 +72,11 @@ author: - Ansible Cloud Team (@ansible-collections) version_added: 2.0.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""" @@ -103,8 +100,6 @@ PAYLOAD_FORMAT = { "set": {"query": {}, "body": {"name": "name"}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -119,26 +114,27 @@ 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", @@ -205,7 +201,6 @@ def build_url(params): async def entry_point(module, session): - if module.params["state"] == "present": if "_create" in globals(): operation = "create" |