From a73bd8dcbcb16d066d448cc0ac8ce70ede82b096 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 22 Jan 2015 21:55:27 -0800 Subject: [PATCH] More information about distutils on Solaris in case we run into this again --- lib/ansible/modules/system/service.py | 3 +++ 1 file changed, 3 insertions(+) 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