diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index 3b151bd8c..82ade23c1 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -78,6 +78,7 @@ jobs: - stable-2.13 - stable-2.14 - stable-2.15 + # - stable-2.16 # - devel # - milestone # Ansible-test on various stable branches does not yet work well with cgroups v2. @@ -105,10 +106,12 @@ jobs: # test-deps: >- # ansible.netcommon # ansible.utils + test-deps: >- + cloud.common # OPTIONAL If set to true, will test only against changed files, # which should improve CI performance. See limitations on # https://github.com/ansible-community/ansible-test-gh-action#pull-request-change-detection - pull-request-change-detection: true + pull-request-change-detection: false check: # This job does nothing and is only used for the branch protection # or multi-stage CI jobs, like making sure that all tests pass before diff --git a/changelogs/fragments/fix_gha_sanity_tests.yaml b/changelogs/fragments/fix_gha_sanity_tests.yaml new file mode 100644 index 000000000..c6f3ca82e --- /dev/null +++ b/changelogs/fragments/fix_gha_sanity_tests.yaml @@ -0,0 +1,3 @@ +--- +trivial: +- "Fix GHA sanity tests." diff --git a/plugins/modules/appliance_access_consolecli.py b/plugins/modules/appliance_access_consolecli.py index cdf6511c0..3fd8927f6 100644 --- a/plugins/modules/appliance_access_consolecli.py +++ b/plugins/modules/appliance_access_consolecli.py @@ -102,8 +102,6 @@ "set": {"query": {}, "body": {"enabled": "enabled"}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -118,12 +116,9 @@ 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, diff --git a/plugins/modules/appliance_access_consolecli_info.py b/plugins/modules/appliance_access_consolecli_info.py index d14bfae21..ff565ea37 100644 --- a/plugins/modules/appliance_access_consolecli_info.py +++ b/plugins/modules/appliance_access_consolecli_info.py @@ -90,8 +90,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -106,14 +104,8 @@ 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, ) diff --git a/plugins/modules/appliance_access_dcui.py b/plugins/modules/appliance_access_dcui.py index d314ae39c..f6d1f57db 100644 --- a/plugins/modules/appliance_access_dcui.py +++ b/plugins/modules/appliance_access_dcui.py @@ -102,8 +102,6 @@ "set": {"query": {}, "body": {"enabled": "enabled"}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -118,12 +116,9 @@ 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, diff --git a/plugins/modules/appliance_access_dcui_info.py b/plugins/modules/appliance_access_dcui_info.py index b7009c91a..ddb12298b 100644 --- a/plugins/modules/appliance_access_dcui_info.py +++ b/plugins/modules/appliance_access_dcui_info.py @@ -90,8 +90,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -106,14 +104,8 @@ 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, ) diff --git a/plugins/modules/appliance_access_shell.py b/plugins/modules/appliance_access_shell.py index 9962b04be..a0170df0a 100644 --- a/plugins/modules/appliance_access_shell.py +++ b/plugins/modules/appliance_access_shell.py @@ -123,8 +123,6 @@ } } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -139,12 +137,9 @@ 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, diff --git a/plugins/modules/appliance_access_shell_info.py b/plugins/modules/appliance_access_shell_info.py index 1821b6b60..6616da852 100644 --- a/plugins/modules/appliance_access_shell_info.py +++ b/plugins/modules/appliance_access_shell_info.py @@ -95,8 +95,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -111,14 +109,8 @@ 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, ) diff --git a/plugins/modules/appliance_access_ssh.py b/plugins/modules/appliance_access_ssh.py index d48605e82..b89de79a9 100644 --- a/plugins/modules/appliance_access_ssh.py +++ b/plugins/modules/appliance_access_ssh.py @@ -103,8 +103,6 @@ "set": {"query": {}, "body": {"enabled": "enabled"}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -119,12 +117,9 @@ 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, diff --git a/plugins/modules/appliance_access_ssh_info.py b/plugins/modules/appliance_access_ssh_info.py index fd6b47701..7deb049d7 100644 --- a/plugins/modules/appliance_access_ssh_info.py +++ b/plugins/modules/appliance_access_ssh_info.py @@ -91,8 +91,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -107,14 +105,8 @@ 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, ) diff --git a/plugins/modules/appliance_health_applmgmt_info.py b/plugins/modules/appliance_health_applmgmt_info.py index 56563f611..dea883a42 100644 --- a/plugins/modules/appliance_health_applmgmt_info.py +++ b/plugins/modules/appliance_health_applmgmt_info.py @@ -91,8 +91,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -107,14 +105,8 @@ 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, ) diff --git a/plugins/modules/appliance_health_database_info.py b/plugins/modules/appliance_health_database_info.py index 0a73c8e14..926e501a0 100644 --- a/plugins/modules/appliance_health_database_info.py +++ b/plugins/modules/appliance_health_database_info.py @@ -85,8 +85,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -101,14 +99,8 @@ 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, ) diff --git a/plugins/modules/appliance_health_databasestorage_info.py b/plugins/modules/appliance_health_databasestorage_info.py index c45b70893..15dae4349 100644 --- a/plugins/modules/appliance_health_databasestorage_info.py +++ b/plugins/modules/appliance_health_databasestorage_info.py @@ -91,8 +91,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -107,14 +105,8 @@ 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, ) diff --git a/plugins/modules/appliance_health_load_info.py b/plugins/modules/appliance_health_load_info.py index 682073a76..4c9663e6c 100644 --- a/plugins/modules/appliance_health_load_info.py +++ b/plugins/modules/appliance_health_load_info.py @@ -91,8 +91,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -107,14 +105,8 @@ 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, ) diff --git a/plugins/modules/appliance_health_mem_info.py b/plugins/modules/appliance_health_mem_info.py index 4d36033c8..403306cef 100644 --- a/plugins/modules/appliance_health_mem_info.py +++ b/plugins/modules/appliance_health_mem_info.py @@ -91,8 +91,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -107,14 +105,8 @@ 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, ) diff --git a/plugins/modules/appliance_health_softwarepackages_info.py b/plugins/modules/appliance_health_softwarepackages_info.py index 0ced96666..d544c0645 100644 --- a/plugins/modules/appliance_health_softwarepackages_info.py +++ b/plugins/modules/appliance_health_softwarepackages_info.py @@ -96,8 +96,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -112,14 +110,8 @@ 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, ) diff --git a/plugins/modules/appliance_health_storage_info.py b/plugins/modules/appliance_health_storage_info.py index abe8be6a2..9543df0b0 100644 --- a/plugins/modules/appliance_health_storage_info.py +++ b/plugins/modules/appliance_health_storage_info.py @@ -91,8 +91,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -107,14 +105,8 @@ 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, ) diff --git a/plugins/modules/appliance_health_swap_info.py b/plugins/modules/appliance_health_swap_info.py index 1dd108a64..9c35a5a94 100644 --- a/plugins/modules/appliance_health_swap_info.py +++ b/plugins/modules/appliance_health_swap_info.py @@ -91,8 +91,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -107,14 +105,8 @@ 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, ) diff --git a/plugins/modules/appliance_health_system_info.py b/plugins/modules/appliance_health_system_info.py index ba094ada2..81c00f0c6 100644 --- a/plugins/modules/appliance_health_system_info.py +++ b/plugins/modules/appliance_health_system_info.py @@ -91,8 +91,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -107,14 +105,8 @@ 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, ) diff --git a/plugins/modules/appliance_infraprofile_configs.py b/plugins/modules/appliance_infraprofile_configs.py index 5bb72f120..5f7ec0e27 100644 --- a/plugins/modules/appliance_infraprofile_configs.py +++ b/plugins/modules/appliance_infraprofile_configs.py @@ -137,8 +137,6 @@ } } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -153,12 +151,9 @@ 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, diff --git a/plugins/modules/appliance_infraprofile_configs_info.py b/plugins/modules/appliance_infraprofile_configs_info.py index 61e865798..6102f5e2d 100644 --- a/plugins/modules/appliance_infraprofile_configs_info.py +++ b/plugins/modules/appliance_infraprofile_configs_info.py @@ -97,8 +97,6 @@ "list": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -113,14 +111,8 @@ 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, ) diff --git a/plugins/modules/appliance_localaccounts_globalpolicy.py b/plugins/modules/appliance_localaccounts_globalpolicy.py index 6193406ee..2d6176d76 100644 --- a/plugins/modules/appliance_localaccounts_globalpolicy.py +++ b/plugins/modules/appliance_localaccounts_globalpolicy.py @@ -120,8 +120,6 @@ } } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -136,12 +134,9 @@ 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, diff --git a/plugins/modules/appliance_localaccounts_globalpolicy_info.py b/plugins/modules/appliance_localaccounts_globalpolicy_info.py index 6894e980e..2a9076571 100644 --- a/plugins/modules/appliance_localaccounts_globalpolicy_info.py +++ b/plugins/modules/appliance_localaccounts_globalpolicy_info.py @@ -94,8 +94,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -110,14 +108,8 @@ 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, ) diff --git a/plugins/modules/appliance_localaccounts_info.py b/plugins/modules/appliance_localaccounts_info.py index 80c561463..556e40b66 100644 --- a/plugins/modules/appliance_localaccounts_info.py +++ b/plugins/modules/appliance_localaccounts_info.py @@ -124,8 +124,6 @@ "list": {"query": {}, "body": {}, "path": {}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -143,11 +141,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/appliance_monitoring_info.py b/plugins/modules/appliance_monitoring_info.py index 9bd24c17d..e3e87af6e 100644 --- a/plugins/modules/appliance_monitoring_info.py +++ b/plugins/modules/appliance_monitoring_info.py @@ -918,8 +918,6 @@ "list": {"query": {}, "body": {}, "path": {}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -937,11 +935,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/appliance_monitoring_query.py b/plugins/modules/appliance_monitoring_query.py index af56df191..cdd3b45f3 100644 --- a/plugins/modules/appliance_monitoring_query.py +++ b/plugins/modules/appliance_monitoring_query.py @@ -164,8 +164,6 @@ } } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -180,12 +178,9 @@ 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, diff --git a/plugins/modules/appliance_networking.py b/plugins/modules/appliance_networking.py index f5e5ed6f9..a7edfae87 100644 --- a/plugins/modules/appliance_networking.py +++ b/plugins/modules/appliance_networking.py @@ -111,8 +111,6 @@ "update": {"query": {}, "body": {"ipv6_enabled": "ipv6_enabled"}, "path": {}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -127,12 +125,9 @@ 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, diff --git a/plugins/modules/appliance_networking_dns_domains.py b/plugins/modules/appliance_networking_dns_domains.py index 670fef6e0..0ea0dc8a3 100644 --- a/plugins/modules/appliance_networking_dns_domains.py +++ b/plugins/modules/appliance_networking_dns_domains.py @@ -116,8 +116,6 @@ "add": {"query": {}, "body": {"domain": "domain"}, "path": {}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -132,12 +130,9 @@ 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, diff --git a/plugins/modules/appliance_networking_dns_domains_info.py b/plugins/modules/appliance_networking_dns_domains_info.py index 5f0fc5ab7..d4d4a144c 100644 --- a/plugins/modules/appliance_networking_dns_domains_info.py +++ b/plugins/modules/appliance_networking_dns_domains_info.py @@ -91,8 +91,6 @@ "list": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -107,14 +105,8 @@ 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, ) diff --git a/plugins/modules/appliance_networking_dns_hostname.py b/plugins/modules/appliance_networking_dns_hostname.py index 6e764f653..7f6313cdc 100644 --- a/plugins/modules/appliance_networking_dns_hostname.py +++ b/plugins/modules/appliance_networking_dns_hostname.py @@ -110,8 +110,6 @@ "set": {"query": {}, "body": {"name": "name"}, "path": {}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -126,12 +124,9 @@ 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, diff --git a/plugins/modules/appliance_networking_dns_hostname_info.py b/plugins/modules/appliance_networking_dns_hostname_info.py index c8fc059bf..aa3af341d 100644 --- a/plugins/modules/appliance_networking_dns_hostname_info.py +++ b/plugins/modules/appliance_networking_dns_hostname_info.py @@ -91,8 +91,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -107,14 +105,8 @@ 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, ) diff --git a/plugins/modules/appliance_networking_dns_servers.py b/plugins/modules/appliance_networking_dns_servers.py index 137dadf33..224df1555 100644 --- a/plugins/modules/appliance_networking_dns_servers.py +++ b/plugins/modules/appliance_networking_dns_servers.py @@ -148,8 +148,6 @@ "add": {"query": {}, "body": {"server": "server"}, "path": {}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -164,12 +162,9 @@ 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, diff --git a/plugins/modules/appliance_networking_dns_servers_info.py b/plugins/modules/appliance_networking_dns_servers_info.py index 6cfb9a51a..5eebb73d0 100644 --- a/plugins/modules/appliance_networking_dns_servers_info.py +++ b/plugins/modules/appliance_networking_dns_servers_info.py @@ -94,8 +94,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -110,14 +108,8 @@ 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, ) diff --git a/plugins/modules/appliance_networking_firewall_inbound.py b/plugins/modules/appliance_networking_firewall_inbound.py index 4398c2a27..728370b0b 100644 --- a/plugins/modules/appliance_networking_firewall_inbound.py +++ b/plugins/modules/appliance_networking_firewall_inbound.py @@ -146,8 +146,6 @@ "set": {"query": {}, "body": {"rules": "rules"}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -162,12 +160,9 @@ 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, diff --git a/plugins/modules/appliance_networking_firewall_inbound_info.py b/plugins/modules/appliance_networking_firewall_inbound_info.py index 5f874f28d..6599f93d9 100644 --- a/plugins/modules/appliance_networking_firewall_inbound_info.py +++ b/plugins/modules/appliance_networking_firewall_inbound_info.py @@ -94,8 +94,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -110,14 +108,8 @@ 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, ) diff --git a/plugins/modules/appliance_networking_info.py b/plugins/modules/appliance_networking_info.py index 48c364894..673bf5f39 100644 --- a/plugins/modules/appliance_networking_info.py +++ b/plugins/modules/appliance_networking_info.py @@ -118,8 +118,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -134,14 +132,8 @@ 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, ) diff --git a/plugins/modules/appliance_networking_interfaces_info.py b/plugins/modules/appliance_networking_interfaces_info.py index 12ff0d9d8..0b9e49599 100644 --- a/plugins/modules/appliance_networking_interfaces_info.py +++ b/plugins/modules/appliance_networking_interfaces_info.py @@ -125,8 +125,6 @@ "list": {"query": {}, "body": {}, "path": {}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -144,11 +142,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/appliance_networking_interfaces_ipv4.py b/plugins/modules/appliance_networking_interfaces_ipv4.py index 28a2e5e5d..a410b7c47 100644 --- a/plugins/modules/appliance_networking_interfaces_ipv4.py +++ b/plugins/modules/appliance_networking_interfaces_ipv4.py @@ -152,8 +152,6 @@ } } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -168,12 +166,9 @@ 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, diff --git a/plugins/modules/appliance_networking_interfaces_ipv4_info.py b/plugins/modules/appliance_networking_interfaces_ipv4_info.py index 745b77695..030fd79ff 100644 --- a/plugins/modules/appliance_networking_interfaces_ipv4_info.py +++ b/plugins/modules/appliance_networking_interfaces_ipv4_info.py @@ -101,8 +101,6 @@ "get": {"query": {}, "body": {}, "path": {"interface_name": "interface_name"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -117,14 +115,8 @@ 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, ) diff --git a/plugins/modules/appliance_networking_interfaces_ipv6.py b/plugins/modules/appliance_networking_interfaces_ipv6.py index 8ce23e3cf..a460589a5 100644 --- a/plugins/modules/appliance_networking_interfaces_ipv6.py +++ b/plugins/modules/appliance_networking_interfaces_ipv6.py @@ -155,8 +155,6 @@ } } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -171,12 +169,9 @@ 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, diff --git a/plugins/modules/appliance_networking_interfaces_ipv6_info.py b/plugins/modules/appliance_networking_interfaces_ipv6_info.py index 1554a6337..f252986a2 100644 --- a/plugins/modules/appliance_networking_interfaces_ipv6_info.py +++ b/plugins/modules/appliance_networking_interfaces_ipv6_info.py @@ -105,8 +105,6 @@ "get": {"query": {}, "body": {}, "path": {"interface_name": "interface_name"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -121,14 +119,8 @@ 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, ) diff --git a/plugins/modules/appliance_networking_noproxy.py b/plugins/modules/appliance_networking_noproxy.py index 7b85605b5..379613bb7 100644 --- a/plugins/modules/appliance_networking_noproxy.py +++ b/plugins/modules/appliance_networking_noproxy.py @@ -117,8 +117,6 @@ "set": {"query": {}, "body": {"servers": "servers"}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -133,12 +131,9 @@ 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, diff --git a/plugins/modules/appliance_networking_noproxy_info.py b/plugins/modules/appliance_networking_noproxy_info.py index 0f6d26b19..b3ae984ef 100644 --- a/plugins/modules/appliance_networking_noproxy_info.py +++ b/plugins/modules/appliance_networking_noproxy_info.py @@ -93,8 +93,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -109,14 +107,8 @@ 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, ) diff --git a/plugins/modules/appliance_networking_proxy.py b/plugins/modules/appliance_networking_proxy.py index ddf002bb7..43cdc0762 100644 --- a/plugins/modules/appliance_networking_proxy.py +++ b/plugins/modules/appliance_networking_proxy.py @@ -183,8 +183,6 @@ "delete": {"query": {}, "body": {}, "path": {"protocol": "protocol"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -199,12 +197,9 @@ 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, diff --git a/plugins/modules/appliance_networking_proxy_info.py b/plugins/modules/appliance_networking_proxy_info.py index e3dbdfcfc..6f348fbec 100644 --- a/plugins/modules/appliance_networking_proxy_info.py +++ b/plugins/modules/appliance_networking_proxy_info.py @@ -108,8 +108,6 @@ "list": {"query": {}, "body": {}, "path": {}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -127,11 +125,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/appliance_ntp.py b/plugins/modules/appliance_ntp.py index d26d17bf6..9704e28f5 100644 --- a/plugins/modules/appliance_ntp.py +++ b/plugins/modules/appliance_ntp.py @@ -123,8 +123,6 @@ "set": {"query": {}, "body": {"servers": "servers"}, "path": {}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -139,12 +137,9 @@ 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, diff --git a/plugins/modules/appliance_ntp_info.py b/plugins/modules/appliance_ntp_info.py index a3890ff7b..28edca70e 100644 --- a/plugins/modules/appliance_ntp_info.py +++ b/plugins/modules/appliance_ntp_info.py @@ -99,8 +99,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -115,14 +113,8 @@ 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, ) diff --git a/plugins/modules/appliance_services.py b/plugins/modules/appliance_services.py index 4542c19fc..dbcccb119 100644 --- a/plugins/modules/appliance_services.py +++ b/plugins/modules/appliance_services.py @@ -120,8 +120,6 @@ "stop": {"query": {}, "body": {}, "path": {"service": "service"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -136,12 +134,9 @@ 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, diff --git a/plugins/modules/appliance_services_info.py b/plugins/modules/appliance_services_info.py index 86e945fec..5bbed2649 100644 --- a/plugins/modules/appliance_services_info.py +++ b/plugins/modules/appliance_services_info.py @@ -104,8 +104,6 @@ "list": {"query": {}, "body": {}, "path": {}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -123,11 +121,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/appliance_shutdown.py b/plugins/modules/appliance_shutdown.py index 496ee87b4..187de8b45 100644 --- a/plugins/modules/appliance_shutdown.py +++ b/plugins/modules/appliance_shutdown.py @@ -134,8 +134,6 @@ }, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -150,12 +148,9 @@ 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, diff --git a/plugins/modules/appliance_shutdown_info.py b/plugins/modules/appliance_shutdown_info.py index 020fb7940..646fae32d 100644 --- a/plugins/modules/appliance_shutdown_info.py +++ b/plugins/modules/appliance_shutdown_info.py @@ -98,8 +98,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -114,14 +112,8 @@ 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, ) diff --git a/plugins/modules/appliance_system_globalfips.py b/plugins/modules/appliance_system_globalfips.py index 9abe88739..0409b4667 100644 --- a/plugins/modules/appliance_system_globalfips.py +++ b/plugins/modules/appliance_system_globalfips.py @@ -93,8 +93,6 @@ "update": {"query": {}, "body": {"enabled": "enabled"}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -109,12 +107,6 @@ 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, diff --git a/plugins/modules/appliance_system_globalfips_info.py b/plugins/modules/appliance_system_globalfips_info.py index b2cfe5534..99b4882f2 100644 --- a/plugins/modules/appliance_system_globalfips_info.py +++ b/plugins/modules/appliance_system_globalfips_info.py @@ -82,8 +82,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -98,14 +96,8 @@ 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, ) diff --git a/plugins/modules/appliance_system_storage.py b/plugins/modules/appliance_system_storage.py index f9a1f4eb7..8bf8613c4 100644 --- a/plugins/modules/appliance_system_storage.py +++ b/plugins/modules/appliance_system_storage.py @@ -109,8 +109,6 @@ "resize": {"query": {}, "body": {}, "path": {}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -125,12 +123,9 @@ 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, diff --git a/plugins/modules/appliance_system_storage_info.py b/plugins/modules/appliance_system_storage_info.py index 2d6dccebb..33135181a 100644 --- a/plugins/modules/appliance_system_storage_info.py +++ b/plugins/modules/appliance_system_storage_info.py @@ -91,8 +91,6 @@ "list": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -107,14 +105,8 @@ 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, ) diff --git a/plugins/modules/appliance_system_time_info.py b/plugins/modules/appliance_system_time_info.py index 9ec1be999..b7f29836c 100644 --- a/plugins/modules/appliance_system_time_info.py +++ b/plugins/modules/appliance_system_time_info.py @@ -95,8 +95,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -111,14 +109,8 @@ 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, ) diff --git a/plugins/modules/appliance_system_time_timezone.py b/plugins/modules/appliance_system_time_timezone.py index f71ce8cf4..5c7ca39e4 100644 --- a/plugins/modules/appliance_system_time_timezone.py +++ b/plugins/modules/appliance_system_time_timezone.py @@ -103,8 +103,6 @@ "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,12 +117,9 @@ 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, diff --git a/plugins/modules/appliance_system_time_timezone_info.py b/plugins/modules/appliance_system_time_timezone_info.py index 55036b151..8ca42dc9f 100644 --- a/plugins/modules/appliance_system_time_timezone_info.py +++ b/plugins/modules/appliance_system_time_timezone_info.py @@ -91,8 +91,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -107,14 +105,8 @@ 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, ) diff --git a/plugins/modules/appliance_system_version_info.py b/plugins/modules/appliance_system_version_info.py index 7a150a3f0..3ffe68432 100644 --- a/plugins/modules/appliance_system_version_info.py +++ b/plugins/modules/appliance_system_version_info.py @@ -98,8 +98,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -114,14 +112,8 @@ 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, ) diff --git a/plugins/modules/appliance_timesync.py b/plugins/modules/appliance_timesync.py index 0593a6483..53ec12aeb 100644 --- a/plugins/modules/appliance_timesync.py +++ b/plugins/modules/appliance_timesync.py @@ -107,8 +107,6 @@ "set": {"query": {}, "body": {"mode": "mode"}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -123,12 +121,9 @@ 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, diff --git a/plugins/modules/appliance_timesync_info.py b/plugins/modules/appliance_timesync_info.py index 3cee769a2..38a46f08c 100644 --- a/plugins/modules/appliance_timesync_info.py +++ b/plugins/modules/appliance_timesync_info.py @@ -91,8 +91,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -107,14 +105,8 @@ 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, ) diff --git a/plugins/modules/appliance_update_info.py b/plugins/modules/appliance_update_info.py index e136a5781..06777d431 100644 --- a/plugins/modules/appliance_update_info.py +++ b/plugins/modules/appliance_update_info.py @@ -93,8 +93,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -109,14 +107,8 @@ 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, ) diff --git a/plugins/modules/appliance_vmon_service.py b/plugins/modules/appliance_vmon_service.py index 086544913..bec481fb4 100644 --- a/plugins/modules/appliance_vmon_service.py +++ b/plugins/modules/appliance_vmon_service.py @@ -131,8 +131,6 @@ "start": {"query": {}, "body": {}, "path": {"service": "service"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -147,12 +145,9 @@ 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, diff --git a/plugins/modules/appliance_vmon_service_info.py b/plugins/modules/appliance_vmon_service_info.py index 1589c0711..18e2d588c 100644 --- a/plugins/modules/appliance_vmon_service_info.py +++ b/plugins/modules/appliance_vmon_service_info.py @@ -477,8 +477,6 @@ "get": {"query": {}, "body": {}, "path": {"service": "service"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -493,14 +491,8 @@ 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, ) diff --git a/plugins/modules/content_configuration.py b/plugins/modules/content_configuration.py index 5ba1d003f..7dc0e7eb4 100644 --- a/plugins/modules/content_configuration.py +++ b/plugins/modules/content_configuration.py @@ -146,8 +146,6 @@ } } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -162,12 +160,6 @@ 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, diff --git a/plugins/modules/content_configuration_info.py b/plugins/modules/content_configuration_info.py index 16dd53d40..a85d733e9 100644 --- a/plugins/modules/content_configuration_info.py +++ b/plugins/modules/content_configuration_info.py @@ -95,8 +95,6 @@ "get": {"query": {}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -111,14 +109,8 @@ 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, ) diff --git a/plugins/modules/content_library_item_info.py b/plugins/modules/content_library_item_info.py index 34e6d1e97..b88ffe542 100644 --- a/plugins/modules/content_library_item_info.py +++ b/plugins/modules/content_library_item_info.py @@ -184,8 +184,6 @@ "list": {"query": {"library_id": "library_id"}, "body": {}, "path": {}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -203,11 +201,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/content_locallibrary.py b/plugins/modules/content_locallibrary.py index e886d9d31..1a8c06438 100644 --- a/plugins/modules/content_locallibrary.py +++ b/plugins/modules/content_locallibrary.py @@ -1288,8 +1288,6 @@ }, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -1304,12 +1302,10 @@ 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, diff --git a/plugins/modules/content_locallibrary_info.py b/plugins/modules/content_locallibrary_info.py index c7559e03b..d34759710 100644 --- a/plugins/modules/content_locallibrary_info.py +++ b/plugins/modules/content_locallibrary_info.py @@ -323,8 +323,6 @@ "list": {"query": {}, "body": {}, "path": {}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -342,11 +340,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/content_subscribedlibrary.py b/plugins/modules/content_subscribedlibrary.py index 782233286..e67962853 100644 --- a/plugins/modules/content_subscribedlibrary.py +++ b/plugins/modules/content_subscribedlibrary.py @@ -494,8 +494,6 @@ "evict": {"query": {}, "body": {}, "path": {"library_id": "library_id"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -510,12 +508,10 @@ 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, diff --git a/plugins/modules/content_subscribedlibrary_info.py b/plugins/modules/content_subscribedlibrary_info.py index 891b65e6f..0cc01cb29 100644 --- a/plugins/modules/content_subscribedlibrary_info.py +++ b/plugins/modules/content_subscribedlibrary_info.py @@ -113,8 +113,6 @@ "list": {"query": {}, "body": {}, "path": {}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -132,11 +130,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/vcenter_cluster_info.py b/plugins/modules/vcenter_cluster_info.py index e0947f099..dc178de08 100644 --- a/plugins/modules/vcenter_cluster_info.py +++ b/plugins/modules/vcenter_cluster_info.py @@ -145,8 +145,6 @@ }, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -164,11 +162,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/vcenter_datacenter.py b/plugins/modules/vcenter_datacenter.py index 638084024..992507c6f 100644 --- a/plugins/modules/vcenter_datacenter.py +++ b/plugins/modules/vcenter_datacenter.py @@ -164,8 +164,6 @@ }, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -180,12 +178,10 @@ 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, diff --git a/plugins/modules/vcenter_datacenter_info.py b/plugins/modules/vcenter_datacenter_info.py index 8454fe5d4..486064ecd 100644 --- a/plugins/modules/vcenter_datacenter_info.py +++ b/plugins/modules/vcenter_datacenter_info.py @@ -130,8 +130,6 @@ }, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -149,11 +147,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/vcenter_datastore_info.py b/plugins/modules/vcenter_datastore_info.py index 7c388e4bc..091a38178 100644 --- a/plugins/modules/vcenter_datastore_info.py +++ b/plugins/modules/vcenter_datastore_info.py @@ -157,8 +157,6 @@ }, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -176,11 +174,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/vcenter_folder_info.py b/plugins/modules/vcenter_folder_info.py index 927ab2f0b..485c986f6 100644 --- a/plugins/modules/vcenter_folder_info.py +++ b/plugins/modules/vcenter_folder_info.py @@ -154,8 +154,6 @@ } } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -170,14 +168,8 @@ 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, ) diff --git a/plugins/modules/vcenter_host.py b/plugins/modules/vcenter_host.py index ff00c6754..c4430ae18 100644 --- a/plugins/modules/vcenter_host.py +++ b/plugins/modules/vcenter_host.py @@ -171,8 +171,6 @@ }, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -187,12 +185,10 @@ 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, diff --git a/plugins/modules/vcenter_host_info.py b/plugins/modules/vcenter_host_info.py index 129ca237e..1382d0c58 100644 --- a/plugins/modules/vcenter_host_info.py +++ b/plugins/modules/vcenter_host_info.py @@ -152,8 +152,6 @@ } } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -171,11 +169,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/vcenter_network_info.py b/plugins/modules/vcenter_network_info.py index cd1c83337..b5f938f30 100644 --- a/plugins/modules/vcenter_network_info.py +++ b/plugins/modules/vcenter_network_info.py @@ -150,8 +150,6 @@ } } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -166,14 +164,8 @@ 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, ) diff --git a/plugins/modules/vcenter_ovf_libraryitem.py b/plugins/modules/vcenter_ovf_libraryitem.py index 261b9443f..f93e79d34 100644 --- a/plugins/modules/vcenter_ovf_libraryitem.py +++ b/plugins/modules/vcenter_ovf_libraryitem.py @@ -298,8 +298,6 @@ }, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -314,12 +312,10 @@ 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, diff --git a/plugins/modules/vcenter_resourcepool.py b/plugins/modules/vcenter_resourcepool.py index c0e9cabcf..b5a31b187 100644 --- a/plugins/modules/vcenter_resourcepool.py +++ b/plugins/modules/vcenter_resourcepool.py @@ -260,8 +260,6 @@ }, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -276,12 +274,10 @@ 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, diff --git a/plugins/modules/vcenter_resourcepool_info.py b/plugins/modules/vcenter_resourcepool_info.py index 84a4f6fc3..0d490db5f 100644 --- a/plugins/modules/vcenter_resourcepool_info.py +++ b/plugins/modules/vcenter_resourcepool_info.py @@ -183,8 +183,6 @@ }, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -202,11 +200,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/vcenter_storage_policies_info.py b/plugins/modules/vcenter_storage_policies_info.py index ad36661dd..1ae525a00 100644 --- a/plugins/modules/vcenter_storage_policies_info.py +++ b/plugins/modules/vcenter_storage_policies_info.py @@ -135,8 +135,6 @@ "list": {"query": {"policies": "policies"}, "body": {}, "path": {}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -151,14 +149,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vm.py b/plugins/modules/vcenter_vm.py index c71e80be0..70740932b 100644 --- a/plugins/modules/vcenter_vm.py +++ b/plugins/modules/vcenter_vm.py @@ -1086,8 +1086,6 @@ "unregister": {"query": {}, "body": {}, "path": {"vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -1102,12 +1100,10 @@ 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, diff --git a/plugins/modules/vcenter_vm_guest_customization.py b/plugins/modules/vcenter_vm_guest_customization.py index bfc5b5001..288399a91 100644 --- a/plugins/modules/vcenter_vm_guest_customization.py +++ b/plugins/modules/vcenter_vm_guest_customization.py @@ -220,8 +220,6 @@ } } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -236,12 +234,9 @@ 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, diff --git a/plugins/modules/vcenter_vm_guest_filesystem_directories.py b/plugins/modules/vcenter_vm_guest_filesystem_directories.py index 4fe1bd528..296a6610d 100644 --- a/plugins/modules/vcenter_vm_guest_filesystem_directories.py +++ b/plugins/modules/vcenter_vm_guest_filesystem_directories.py @@ -232,8 +232,6 @@ }, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -248,12 +246,10 @@ 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, diff --git a/plugins/modules/vcenter_vm_guest_identity_info.py b/plugins/modules/vcenter_vm_guest_identity_info.py index 59395db35..b36e0592b 100644 --- a/plugins/modules/vcenter_vm_guest_identity_info.py +++ b/plugins/modules/vcenter_vm_guest_identity_info.py @@ -114,8 +114,6 @@ "get": {"query": {}, "body": {}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -130,14 +128,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vm_guest_localfilesystem_info.py b/plugins/modules/vcenter_vm_guest_localfilesystem_info.py index a4159aecc..560ab7437 100644 --- a/plugins/modules/vcenter_vm_guest_localfilesystem_info.py +++ b/plugins/modules/vcenter_vm_guest_localfilesystem_info.py @@ -116,8 +116,6 @@ "get": {"query": {}, "body": {}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -132,14 +130,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vm_guest_networking_info.py b/plugins/modules/vcenter_vm_guest_networking_info.py index 466bc8db1..45c834d6e 100644 --- a/plugins/modules/vcenter_vm_guest_networking_info.py +++ b/plugins/modules/vcenter_vm_guest_networking_info.py @@ -117,8 +117,6 @@ "get": {"query": {}, "body": {}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -133,14 +131,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vm_guest_networking_interfaces_info.py b/plugins/modules/vcenter_vm_guest_networking_interfaces_info.py index 838fea679..1752ec95d 100644 --- a/plugins/modules/vcenter_vm_guest_networking_interfaces_info.py +++ b/plugins/modules/vcenter_vm_guest_networking_interfaces_info.py @@ -113,8 +113,6 @@ "list": {"query": {}, "body": {}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -129,14 +127,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vm_guest_networking_routes_info.py b/plugins/modules/vcenter_vm_guest_networking_routes_info.py index ab7ad241f..bab188e8f 100644 --- a/plugins/modules/vcenter_vm_guest_networking_routes_info.py +++ b/plugins/modules/vcenter_vm_guest_networking_routes_info.py @@ -108,8 +108,6 @@ "list": {"query": {}, "body": {}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -124,14 +122,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vm_guest_operations_info.py b/plugins/modules/vcenter_vm_guest_operations_info.py index 78799f24f..ac17c2f89 100644 --- a/plugins/modules/vcenter_vm_guest_operations_info.py +++ b/plugins/modules/vcenter_vm_guest_operations_info.py @@ -86,8 +86,6 @@ "get": {"query": {}, "body": {}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -102,14 +100,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vm_guest_power.py b/plugins/modules/vcenter_vm_guest_power.py index 65bdfbfd7..9120120e0 100644 --- a/plugins/modules/vcenter_vm_guest_power.py +++ b/plugins/modules/vcenter_vm_guest_power.py @@ -146,8 +146,6 @@ "standby": {"query": {}, "body": {}, "path": {"vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -162,12 +160,9 @@ 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, diff --git a/plugins/modules/vcenter_vm_guest_power_info.py b/plugins/modules/vcenter_vm_guest_power_info.py index bcb7fef6f..318ee809f 100644 --- a/plugins/modules/vcenter_vm_guest_power_info.py +++ b/plugins/modules/vcenter_vm_guest_power_info.py @@ -130,8 +130,6 @@ "get": {"query": {}, "body": {}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -146,14 +144,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vm_hardware.py b/plugins/modules/vcenter_vm_hardware.py index 3e8f8ad87..d33d67f2b 100644 --- a/plugins/modules/vcenter_vm_hardware.py +++ b/plugins/modules/vcenter_vm_hardware.py @@ -174,8 +174,6 @@ "upgrade": {"query": {}, "body": {"version": "version"}, "path": {"vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -190,12 +188,9 @@ 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, diff --git a/plugins/modules/vcenter_vm_hardware_adapter_sata.py b/plugins/modules/vcenter_vm_hardware_adapter_sata.py index 080c7a54e..ef65783b5 100644 --- a/plugins/modules/vcenter_vm_hardware_adapter_sata.py +++ b/plugins/modules/vcenter_vm_hardware_adapter_sata.py @@ -23,6 +23,7 @@ description: - SATA bus number. type: int + default: 0 label: description: - The name of the item @@ -158,8 +159,6 @@ "delete": {"query": {}, "body": {}, "path": {"adapter": "adapter", "vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -174,12 +173,10 @@ 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, diff --git a/plugins/modules/vcenter_vm_hardware_adapter_sata_info.py b/plugins/modules/vcenter_vm_hardware_adapter_sata_info.py index d2912eaab..d437c66da 100644 --- a/plugins/modules/vcenter_vm_hardware_adapter_sata_info.py +++ b/plugins/modules/vcenter_vm_hardware_adapter_sata_info.py @@ -130,8 +130,6 @@ "list": {"query": {}, "body": {}, "path": {"vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -149,11 +147,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/vcenter_vm_hardware_adapter_scsi.py b/plugins/modules/vcenter_vm_hardware_adapter_scsi.py index 3509c904d..71f3e0d05 100644 --- a/plugins/modules/vcenter_vm_hardware_adapter_scsi.py +++ b/plugins/modules/vcenter_vm_hardware_adapter_scsi.py @@ -23,6 +23,7 @@ description: - SCSI bus number. type: int + default: 0 label: description: - The name of the item @@ -185,8 +186,6 @@ }, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -201,12 +200,10 @@ 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, diff --git a/plugins/modules/vcenter_vm_hardware_adapter_scsi_info.py b/plugins/modules/vcenter_vm_hardware_adapter_scsi_info.py index c64df425a..04c2a1090 100644 --- a/plugins/modules/vcenter_vm_hardware_adapter_scsi_info.py +++ b/plugins/modules/vcenter_vm_hardware_adapter_scsi_info.py @@ -118,8 +118,6 @@ "list": {"query": {}, "body": {}, "path": {"vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -137,11 +135,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/vcenter_vm_hardware_boot.py b/plugins/modules/vcenter_vm_hardware_boot.py index 76f92ab3f..c282ae1ec 100644 --- a/plugins/modules/vcenter_vm_hardware_boot.py +++ b/plugins/modules/vcenter_vm_hardware_boot.py @@ -177,8 +177,6 @@ } } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -193,12 +191,6 @@ 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, diff --git a/plugins/modules/vcenter_vm_hardware_boot_device.py b/plugins/modules/vcenter_vm_hardware_boot_device.py index b555747b8..64254ef18 100644 --- a/plugins/modules/vcenter_vm_hardware_boot_device.py +++ b/plugins/modules/vcenter_vm_hardware_boot_device.py @@ -141,8 +141,6 @@ "set": {"query": {}, "body": {"devices": "devices"}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -157,12 +155,9 @@ 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, diff --git a/plugins/modules/vcenter_vm_hardware_boot_device_info.py b/plugins/modules/vcenter_vm_hardware_boot_device_info.py index e4d037bab..6643e0e5c 100644 --- a/plugins/modules/vcenter_vm_hardware_boot_device_info.py +++ b/plugins/modules/vcenter_vm_hardware_boot_device_info.py @@ -114,8 +114,6 @@ "get": {"query": {}, "body": {}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -130,14 +128,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vm_hardware_boot_info.py b/plugins/modules/vcenter_vm_hardware_boot_info.py index 66fcac5f7..4d5a2b003 100644 --- a/plugins/modules/vcenter_vm_hardware_boot_info.py +++ b/plugins/modules/vcenter_vm_hardware_boot_info.py @@ -111,8 +111,6 @@ "get": {"query": {}, "body": {}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -127,14 +125,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vm_hardware_cdrom.py b/plugins/modules/vcenter_vm_hardware_cdrom.py index 131a5b0d9..44f412d3f 100644 --- a/plugins/modules/vcenter_vm_hardware_cdrom.py +++ b/plugins/modules/vcenter_vm_hardware_cdrom.py @@ -232,8 +232,6 @@ "connect": {"query": {}, "body": {}, "path": {"cdrom": "cdrom", "vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -248,12 +246,10 @@ 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, diff --git a/plugins/modules/vcenter_vm_hardware_cdrom_info.py b/plugins/modules/vcenter_vm_hardware_cdrom_info.py index ea51baa3a..80ce96f10 100644 --- a/plugins/modules/vcenter_vm_hardware_cdrom_info.py +++ b/plugins/modules/vcenter_vm_hardware_cdrom_info.py @@ -117,8 +117,6 @@ "list": {"query": {}, "body": {}, "path": {"vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -136,11 +134,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/vcenter_vm_hardware_cpu.py b/plugins/modules/vcenter_vm_hardware_cpu.py index ff96dde18..e4df035b5 100644 --- a/plugins/modules/vcenter_vm_hardware_cpu.py +++ b/plugins/modules/vcenter_vm_hardware_cpu.py @@ -160,8 +160,6 @@ } } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -176,12 +174,6 @@ 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, diff --git a/plugins/modules/vcenter_vm_hardware_cpu_info.py b/plugins/modules/vcenter_vm_hardware_cpu_info.py index 7901d02ad..8f422d88c 100644 --- a/plugins/modules/vcenter_vm_hardware_cpu_info.py +++ b/plugins/modules/vcenter_vm_hardware_cpu_info.py @@ -111,8 +111,6 @@ "get": {"query": {}, "body": {}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -127,14 +125,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vm_hardware_disk.py b/plugins/modules/vcenter_vm_hardware_disk.py index 2d27e32ac..e06729a21 100644 --- a/plugins/modules/vcenter_vm_hardware_disk.py +++ b/plugins/modules/vcenter_vm_hardware_disk.py @@ -232,8 +232,6 @@ }, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -248,12 +246,10 @@ 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, diff --git a/plugins/modules/vcenter_vm_hardware_disk_info.py b/plugins/modules/vcenter_vm_hardware_disk_info.py index 481e25896..57f55e391 100644 --- a/plugins/modules/vcenter_vm_hardware_disk_info.py +++ b/plugins/modules/vcenter_vm_hardware_disk_info.py @@ -137,8 +137,6 @@ "list": {"query": {}, "body": {}, "path": {"vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -156,11 +154,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/vcenter_vm_hardware_ethernet.py b/plugins/modules/vcenter_vm_hardware_ethernet.py index f92a0c4df..d544f054e 100644 --- a/plugins/modules/vcenter_vm_hardware_ethernet.py +++ b/plugins/modules/vcenter_vm_hardware_ethernet.py @@ -314,8 +314,6 @@ "connect": {"query": {}, "body": {}, "path": {"nic": "nic", "vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -330,12 +328,10 @@ 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, diff --git a/plugins/modules/vcenter_vm_hardware_ethernet_info.py b/plugins/modules/vcenter_vm_hardware_ethernet_info.py index d0764425e..068df536d 100644 --- a/plugins/modules/vcenter_vm_hardware_ethernet_info.py +++ b/plugins/modules/vcenter_vm_hardware_ethernet_info.py @@ -122,8 +122,6 @@ "list": {"query": {}, "body": {}, "path": {"vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -141,11 +139,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/vcenter_vm_hardware_floppy.py b/plugins/modules/vcenter_vm_hardware_floppy.py index 98e04233a..3c8c7f09d 100644 --- a/plugins/modules/vcenter_vm_hardware_floppy.py +++ b/plugins/modules/vcenter_vm_hardware_floppy.py @@ -192,8 +192,6 @@ "connect": {"query": {}, "body": {}, "path": {"floppy": "floppy", "vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -208,12 +206,10 @@ 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, diff --git a/plugins/modules/vcenter_vm_hardware_floppy_info.py b/plugins/modules/vcenter_vm_hardware_floppy_info.py index 221083299..8f4c39258 100644 --- a/plugins/modules/vcenter_vm_hardware_floppy_info.py +++ b/plugins/modules/vcenter_vm_hardware_floppy_info.py @@ -117,8 +117,6 @@ "list": {"query": {}, "body": {}, "path": {"vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -136,11 +134,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/vcenter_vm_hardware_info.py b/plugins/modules/vcenter_vm_hardware_info.py index 96cd40fd8..23002fe75 100644 --- a/plugins/modules/vcenter_vm_hardware_info.py +++ b/plugins/modules/vcenter_vm_hardware_info.py @@ -105,8 +105,6 @@ "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,14 +119,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vm_hardware_memory.py b/plugins/modules/vcenter_vm_hardware_memory.py index 912c3604c..f10fc4e58 100644 --- a/plugins/modules/vcenter_vm_hardware_memory.py +++ b/plugins/modules/vcenter_vm_hardware_memory.py @@ -141,8 +141,6 @@ } } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -157,12 +155,6 @@ 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, diff --git a/plugins/modules/vcenter_vm_hardware_memory_info.py b/plugins/modules/vcenter_vm_hardware_memory_info.py index 503f78dd0..c0fe728a9 100644 --- a/plugins/modules/vcenter_vm_hardware_memory_info.py +++ b/plugins/modules/vcenter_vm_hardware_memory_info.py @@ -109,8 +109,6 @@ "get": {"query": {}, "body": {}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -125,14 +123,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vm_hardware_parallel.py b/plugins/modules/vcenter_vm_hardware_parallel.py index 5bb5559a2..a96e19007 100644 --- a/plugins/modules/vcenter_vm_hardware_parallel.py +++ b/plugins/modules/vcenter_vm_hardware_parallel.py @@ -184,8 +184,6 @@ "connect": {"query": {}, "body": {}, "path": {"port": "port", "vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -200,12 +198,10 @@ 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, diff --git a/plugins/modules/vcenter_vm_hardware_parallel_info.py b/plugins/modules/vcenter_vm_hardware_parallel_info.py index b8f3457ab..ac6da9802 100644 --- a/plugins/modules/vcenter_vm_hardware_parallel_info.py +++ b/plugins/modules/vcenter_vm_hardware_parallel_info.py @@ -117,8 +117,6 @@ "list": {"query": {}, "body": {}, "path": {"vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -136,11 +134,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/vcenter_vm_hardware_serial.py b/plugins/modules/vcenter_vm_hardware_serial.py index 0d953a6c6..7eeebae38 100644 --- a/plugins/modules/vcenter_vm_hardware_serial.py +++ b/plugins/modules/vcenter_vm_hardware_serial.py @@ -250,8 +250,6 @@ "connect": {"query": {}, "body": {}, "path": {"port": "port", "vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -266,12 +264,10 @@ 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, diff --git a/plugins/modules/vcenter_vm_hardware_serial_info.py b/plugins/modules/vcenter_vm_hardware_serial_info.py index f79e9e8f3..791b39eda 100644 --- a/plugins/modules/vcenter_vm_hardware_serial_info.py +++ b/plugins/modules/vcenter_vm_hardware_serial_info.py @@ -137,8 +137,6 @@ "list": {"query": {}, "body": {}, "path": {"vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -156,11 +154,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/vcenter_vm_info.py b/plugins/modules/vcenter_vm_info.py index 464b5cad8..3c1c513f8 100644 --- a/plugins/modules/vcenter_vm_info.py +++ b/plugins/modules/vcenter_vm_info.py @@ -310,8 +310,6 @@ }, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -329,11 +327,7 @@ build_full_device_list, exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, update_changed_flag, session_timeout, ) diff --git a/plugins/modules/vcenter_vm_libraryitem_info.py b/plugins/modules/vcenter_vm_libraryitem_info.py index 9a70f5f2d..1dd4cd43b 100644 --- a/plugins/modules/vcenter_vm_libraryitem_info.py +++ b/plugins/modules/vcenter_vm_libraryitem_info.py @@ -109,8 +109,6 @@ "get": {"query": {}, "body": {}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -125,14 +123,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vm_power.py b/plugins/modules/vcenter_vm_power.py index 27139045d..cd9bc4179 100644 --- a/plugins/modules/vcenter_vm_power.py +++ b/plugins/modules/vcenter_vm_power.py @@ -238,8 +238,6 @@ "start": {"query": {}, "body": {}, "path": {"vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -254,12 +252,9 @@ 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, diff --git a/plugins/modules/vcenter_vm_power_info.py b/plugins/modules/vcenter_vm_power_info.py index a482d8cf2..f1139ffc5 100644 --- a/plugins/modules/vcenter_vm_power_info.py +++ b/plugins/modules/vcenter_vm_power_info.py @@ -108,8 +108,6 @@ "get": {"query": {}, "body": {}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -124,14 +122,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vm_storage_policy.py b/plugins/modules/vcenter_vm_storage_policy.py index 63659925e..030acbab6 100644 --- a/plugins/modules/vcenter_vm_storage_policy.py +++ b/plugins/modules/vcenter_vm_storage_policy.py @@ -152,8 +152,6 @@ } } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -168,12 +166,6 @@ 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, diff --git a/plugins/modules/vcenter_vm_storage_policy_compliance.py b/plugins/modules/vcenter_vm_storage_policy_compliance.py index 081417e81..855a6e88a 100644 --- a/plugins/modules/vcenter_vm_storage_policy_compliance.py +++ b/plugins/modules/vcenter_vm_storage_policy_compliance.py @@ -111,8 +111,6 @@ } } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -127,12 +125,9 @@ 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, diff --git a/plugins/modules/vcenter_vm_storage_policy_compliance_info.py b/plugins/modules/vcenter_vm_storage_policy_compliance_info.py index fa6f4e1c3..860f98e50 100644 --- a/plugins/modules/vcenter_vm_storage_policy_compliance_info.py +++ b/plugins/modules/vcenter_vm_storage_policy_compliance_info.py @@ -116,8 +116,6 @@ "get": {"query": {}, "body": {}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -132,14 +130,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vm_storage_policy_info.py b/plugins/modules/vcenter_vm_storage_policy_info.py index 94ead680c..ef4e679b8 100644 --- a/plugins/modules/vcenter_vm_storage_policy_info.py +++ b/plugins/modules/vcenter_vm_storage_policy_info.py @@ -110,8 +110,6 @@ "get": {"query": {}, "body": {}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -126,14 +124,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vm_tools.py b/plugins/modules/vcenter_vm_tools.py index 464f83f43..8928d4b77 100644 --- a/plugins/modules/vcenter_vm_tools.py +++ b/plugins/modules/vcenter_vm_tools.py @@ -162,8 +162,6 @@ }, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -178,12 +176,9 @@ 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, diff --git a/plugins/modules/vcenter_vm_tools_info.py b/plugins/modules/vcenter_vm_tools_info.py index ff87ed923..c5c855753 100644 --- a/plugins/modules/vcenter_vm_tools_info.py +++ b/plugins/modules/vcenter_vm_tools_info.py @@ -173,8 +173,6 @@ "get": {"query": {}, "body": {}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -189,14 +187,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vm_tools_installer.py b/plugins/modules/vcenter_vm_tools_installer.py index e42fe66f7..8dd852f36 100644 --- a/plugins/modules/vcenter_vm_tools_installer.py +++ b/plugins/modules/vcenter_vm_tools_installer.py @@ -146,8 +146,6 @@ "connect": {"query": {}, "body": {}, "path": {"vm": "vm"}}, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -162,12 +160,9 @@ 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, diff --git a/plugins/modules/vcenter_vm_tools_installer_info.py b/plugins/modules/vcenter_vm_tools_installer_info.py index 37401ebef..fe0e07e6a 100644 --- a/plugins/modules/vcenter_vm_tools_installer_info.py +++ b/plugins/modules/vcenter_vm_tools_installer_info.py @@ -129,8 +129,6 @@ "get": {"query": {}, "body": {}, "path": {"vm": "vm"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -145,14 +143,8 @@ 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, ) diff --git a/plugins/modules/vcenter_vmtemplate_libraryitems.py b/plugins/modules/vcenter_vmtemplate_libraryitems.py index c2ced6ab7..1bf700862 100644 --- a/plugins/modules/vcenter_vmtemplate_libraryitems.py +++ b/plugins/modules/vcenter_vmtemplate_libraryitems.py @@ -343,8 +343,6 @@ }, } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -359,12 +357,10 @@ 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, diff --git a/plugins/modules/vcenter_vmtemplate_libraryitems_info.py b/plugins/modules/vcenter_vmtemplate_libraryitems_info.py index 70d9bd27e..c4efbba00 100644 --- a/plugins/modules/vcenter_vmtemplate_libraryitems_info.py +++ b/plugins/modules/vcenter_vmtemplate_libraryitems_info.py @@ -93,8 +93,6 @@ } } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -109,14 +107,8 @@ 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, ) diff --git a/tests/sanity/ignore-2.16.txt b/tests/sanity/ignore-2.16.txt new file mode 100644 index 000000000..f55cc3e59 --- /dev/null +++ b/tests/sanity/ignore-2.16.txt @@ -0,0 +1,2 @@ +plugins/modules/vcenter_vm_guest_customization.py pep8!skip +plugins/modules/appliance_infraprofile_configs.py pep8!skip