diff --git a/plugins/modules/cohesity_cancel_migration.py b/plugins/modules/cohesity_cancel_migration.py index 1a3bc2b..b5deace 100644 --- a/plugins/modules/cohesity_cancel_migration.py +++ b/plugins/modules/cohesity_cancel_migration.py @@ -87,13 +87,7 @@ import json -import time -try: - from urllib import quote -except ImportError: - from urllib.parse import quote -from datetime import datetime from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.urls import open_url, urllib_error diff --git a/plugins/modules/cohesity_finalize_migration.py b/plugins/modules/cohesity_finalize_migration.py index 595df5a..d8a7484 100644 --- a/plugins/modules/cohesity_finalize_migration.py +++ b/plugins/modules/cohesity_finalize_migration.py @@ -88,13 +88,7 @@ import json -import time -try: - from urllib import quote -except ImportError: - from urllib.parse import quote -from datetime import datetime from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.urls import open_url, urllib_error diff --git a/plugins/modules/cohesity_migration_status.py b/plugins/modules/cohesity_migration_status.py index ef8eee2..ad50cac 100644 --- a/plugins/modules/cohesity_migration_status.py +++ b/plugins/modules/cohesity_migration_status.py @@ -85,10 +85,6 @@ import json -try: - from urllib import quote -except ImportError: - from urllib.parse import quote from collections import defaultdict from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.urls import open_url, urllib_error diff --git a/plugins/modules/cohesity_source.py b/plugins/modules/cohesity_source.py index 6671a4e..8b144ac 100644 --- a/plugins/modules/cohesity_source.py +++ b/plugins/modules/cohesity_source.py @@ -256,7 +256,6 @@ """ import json -import subprocess import time from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.urls import open_url, urllib_error @@ -270,7 +269,6 @@ from ansible_collections.cohesity.dataprotect.plugins.module_utils.cohesity_utilities import ( cohesity_common_argument_spec, raise__cohesity_exception__handler, - REQUEST_TIMEOUT, ) from ansible_collections.cohesity.dataprotect.plugins.module_utils.cohesity_hints import ( get__prot_source__all, diff --git a/plugins/modules/cohesity_sync_objects.py b/plugins/modules/cohesity_sync_objects.py index 7934ce8..34051e0 100644 --- a/plugins/modules/cohesity_sync_objects.py +++ b/plugins/modules/cohesity_sync_objects.py @@ -90,11 +90,6 @@ import json -try: - from urllib import quote -except ImportError: - from urllib.parse import quote -from datetime import datetime from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.urls import open_url, urllib_error @@ -110,8 +105,6 @@ REQUEST_TIMEOUT, ) from ansible_collections.cohesity.dataprotect.plugins.module_utils.cohesity_hints import ( - get__protection_jobs__by_environment, - get__vmware_snapshot_information__by_vmname, get__restore_job__by_type, get_cohesity_client, )