Skip to content

Commit

Permalink
Cleanup imports for user
Browse files Browse the repository at this point in the history
Some class use shutil, who was not imported, and we want to
avoid '*' for future refactoring.
  • Loading branch information
mscherer authored and bcoca committed Dec 13, 2016
1 parent 84544ee commit 6ffd494
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ansible/modules/system/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,10 @@
import platform
import socket
import time
import shutil
from ansible.module_utils._text import to_native
from ansible.module_utils.basic import load_platform_subclass, AnsibleModule
from ansible.module_utils.pycompat24 import get_exception

try:
import spwd
Expand Down Expand Up @@ -2231,6 +2234,5 @@ def main():
module.exit_json(**result)

# import module snippets
from ansible.module_utils.basic import *
if __name__ == '__main__':
main()

0 comments on commit 6ffd494

Please sign in to comment.