diff --git a/lib/ansible/modules/system/service.py b/lib/ansible/modules/system/service.py index 5bec19a490..e1bd250a1e 100644 --- a/lib/ansible/modules/system/service.py +++ b/lib/ansible/modules/system/service.py @@ -107,6 +107,9 @@ import time import string # 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