From 77c635f18bd6dffc3b3d1fe75eebf024673fa8de 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. --- web_infrastructure/htpasswd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web_infrastructure/htpasswd.py b/web_infrastructure/htpasswd.py index 3ad9de6e60f..f1a4e482f3a 100644 --- a/web_infrastructure/htpasswd.py +++ b/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()