diff --git a/lib/ansible/module_utils/redhat.py b/lib/ansible/module_utils/redhat.py index bf19ccf390d..905990cf433 100644 --- a/lib/ansible/module_utils/redhat.py +++ b/lib/ansible/module_utils/redhat.py @@ -30,7 +30,6 @@ import os import re import types import ConfigParser -import shlex class RegistrationBase(object): diff --git a/lib/ansible/module_utils/service.py b/lib/ansible/module_utils/service.py index b63207538ce..c74ecff3623 100644 --- a/lib/ansible/module_utils/service.py +++ b/lib/ansible/module_utils/service.py @@ -29,19 +29,11 @@ import platform import os -import tempfile import shlex import select import subprocess import json -# The distutils module is not shipped with SUNWPython on Solaris. -# It's in the SUNWPython-devel package which also contains development files -# that don't belong on production boxes. Since our Solaris code doesn't -# depend on LooseVersion, do not import it on Solaris. -if platform.system() != 'SunOS': - from distutils.version import LooseVersion - class Service(object): """ This is the generic Service manipulation class that is subclassed based on system.