diff --git a/lib/ansible/modules/extras/cloud/vmware/vsphere_copy.py b/lib/ansible/modules/extras/cloud/vmware/vsphere_copy.py index 931645235f8..41971fa977d 100644 --- a/lib/ansible/modules/extras/cloud/vmware/vsphere_copy.py +++ b/lib/ansible/modules/extras/cloud/vmware/vsphere_copy.py @@ -82,7 +82,8 @@ import mmap import errno import socket -from ansible.module_utils.basic import AnsibleModule, get_exception +from ansible.module_utils.basic import AnsibleModule +from ansible.module_utils.pycompat24 import get_exception from ansible.module_utils.urls import open_url def vmware_path(datastore, datacenter, path):