diff --git a/lib/ansible/modules/files/acl.py b/lib/ansible/modules/files/acl.py index d7331e871c4..401122ab806 100644 --- a/lib/ansible/modules/files/acl.py +++ b/lib/ansible/modules/files/acl.py @@ -152,6 +152,7 @@ import os # import module snippets from ansible.module_utils.basic import AnsibleModule, get_platform +from ansible.module_utils.pycompat24 import get_exception def split_entry(entry): ''' splits entry and ensures normalized return''' diff --git a/lib/ansible/modules/files/unarchive.py b/lib/ansible/modules/files/unarchive.py index c6c536282e6..02db2e19d95 100644 --- a/lib/ansible/modules/files/unarchive.py +++ b/lib/ansible/modules/files/unarchive.py @@ -140,6 +140,7 @@ import time from zipfile import ZipFile, BadZipfile from ansible.module_utils.basic import AnsibleModule +from ansible.module_utils.pycompat24 import get_exception from ansible.module_utils.urls import fetch_url from ansible.module_utils._text import to_bytes, to_native, to_text