summaryrefslogtreecommitdiffstats
path: root/ansible_collections/vmware/vmware_rest/plugins/modules/appliance_system_storage.py
diff options
context:
space:
mode:
Diffstat (limited to 'ansible_collections/vmware/vmware_rest/plugins/modules/appliance_system_storage.py')
-rw-r--r--ansible_collections/vmware/vmware_rest/plugins/modules/appliance_system_storage.py29
1 files changed, 12 insertions, 17 deletions
diff --git a/ansible_collections/vmware/vmware_rest/plugins/modules/appliance_system_storage.py b/ansible_collections/vmware/vmware_rest/plugins/modules/appliance_system_storage.py
index f9a1f4eb7..4bfdc3734 100644
--- a/ansible_collections/vmware/vmware_rest/plugins/modules/appliance_system_storage.py
+++ b/ansible_collections/vmware/vmware_rest/plugins/modules/appliance_system_storage.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"""
@@ -71,11 +68,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"""
@@ -105,12 +102,10 @@ value:
# This structure describes the format of the data expected by the end-points
PAYLOAD_FORMAT = {
- "resize_ex": {"query": {}, "body": {}, "path": {}},
"resize": {"query": {}, "body": {}, "path": {}},
+ "resize_ex": {"query": {}, "body": {}, "path": {}},
} # pylint: disable=line-too-long
-import json
-import socket
from ansible.module_utils.basic import env_fallback
try:
@@ -125,26 +120,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",
@@ -214,7 +210,6 @@ def build_url(params):
async def entry_point(module, session):
-
if module.params["state"] == "present":
if "_create" in globals():
operation = "create"