From e6b3c0d88a465970c6cdaf65ca2430168c6d1216 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 19 Oct 2016 13:16:17 +0200 Subject: [PATCH] cleanup import for htpassword module In order to ease future refactoring, we should avoid importing '*' from ansible.module_utils.basic. --- lib/ansible/modules/web_infrastructure/htpasswd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/web_infrastructure/htpasswd.py b/lib/ansible/modules/web_infrastructure/htpasswd.py index 3ad9de6e60..f1a4e482f3 100644 --- a/lib/ansible/modules/web_infrastructure/htpasswd.py +++ b/lib/ansible/modules/web_infrastructure/htpasswd.py @@ -257,7 +257,8 @@ def main(): # import module snippets -from ansible.module_utils.basic import * +from ansible.module_utils.basic import AnsibleModule +from ansible.module_utils.pycompat24 import get_exception if __name__ == '__main__': main()