diff --git a/changelogs/fragments/21-doc.yml b/changelogs/fragments/21-doc.yml new file mode 100644 index 00000000..bc48e4f4 --- /dev/null +++ b/changelogs/fragments/21-doc.yml @@ -0,0 +1,2 @@ +trivial: +- modules documentation - add check_mode support attribute diff --git a/plugins/modules/appliance_info.py b/plugins/modules/appliance_info.py index 86fe7965..4fb8000b 100644 --- a/plugins/modules/appliance_info.py +++ b/plugins/modules/appliance_info.py @@ -35,6 +35,10 @@ type: list elements: str default: all +attributes: + check_mode: + description: The check_mode support. + support: full extends_documentation_fragment: - vmware.vmware.vmware_rest_client.documentation @@ -309,7 +313,7 @@ def main(): ) module = AnsibleModule( argument_spec=argument_spec, - supports_check_mode=True + supports_check_mode=True, ) vmware_appliance_mgr = VmwareApplianceInfo(module) diff --git a/plugins/modules/guest_info.py b/plugins/modules/guest_info.py index abc870c3..d335098b 100644 --- a/plugins/modules/guest_info.py +++ b/plugins/modules/guest_info.py @@ -30,6 +30,10 @@ description: - The name of the guest virtual machine to obtain info from. type: str +attributes: + check_mode: + description: The check_mode support. + support: full extends_documentation_fragment: - vmware.vmware.vmware_rest_client.documentation diff --git a/plugins/modules/license_info.py b/plugins/modules/license_info.py index 2fbfa4fa..6f78caa2 100644 --- a/plugins/modules/license_info.py +++ b/plugins/modules/license_info.py @@ -15,6 +15,10 @@ - Fetch vCenter, ESXi server license keys. author: - Ansible Cloud Team (@ansible-collections) +attributes: + check_mode: + description: The check_mode support. + support: full extends_documentation_fragment: - vmware.vmware.vmware.vcenter_documentation ''' @@ -29,7 +33,7 @@ RETURN = r''' licenses: - description: list of license keys + description: List of license keys. returned: always type: list sample: diff --git a/plugins/modules/vm_list_group_by_clusters.py b/plugins/modules/vm_list_group_by_clusters.py index da8dbddd..b1869bef 100644 --- a/plugins/modules/vm_list_group_by_clusters.py +++ b/plugins/modules/vm_list_group_by_clusters.py @@ -24,6 +24,10 @@ description: - If I(true) gather detailed information about virtual machines. type: bool +attributes: + check_mode: + description: The check_mode support. + support: full extends_documentation_fragment: - vmware.vmware.vmware_rest_client.documentation @@ -40,7 +44,7 @@ RETURN = r''' vm_list_group_by_clusters: description: - - Dictionary of vm list by folders and clusters + - Dictionary of vm list by folders and clusters. returned: On success type: dict sample: { @@ -182,7 +186,7 @@ def main(): ) module = AnsibleModule( argument_spec=argument_spec, - supports_check_mode=True + supports_check_mode=True, ) vmware_vm_list_group_by_clusters_mgr = VmwareVMList(module)