diff --git a/lib/ansible/modules/packaging/os/yum.py b/lib/ansible/modules/packaging/os/yum.py index a753e831a8..9be71f5787 100644 --- a/lib/ansible/modules/packaging/os/yum.py +++ b/lib/ansible/modules/packaging/os/yum.py @@ -30,7 +30,6 @@ import syslog import platform import tempfile import shutil -from ansible.module_utils.urls import * from distutils.version import LooseVersion try: @@ -891,5 +890,7 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() +from ansible.module_utils.urls import * +if __name__ == '__main__': + main()