From 7521be73c17c7a34eb0522b9bc16fc269cf417af Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Sun, 11 Jun 2017 00:27:18 +0530 Subject: [PATCH] Add missing import for get_exception Signed-off-by: Abhijeet Kasurde --- lib/ansible/modules/files/acl.py | 1 + lib/ansible/modules/files/unarchive.py | 1 + 2 files changed, 2 insertions(+) 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