From b2e39265e18e8e6d2e4f2b64028c145ca1144d27 Mon Sep 17 00:00:00 2001 From: Tim G Date: Fri, 16 Jan 2015 10:06:36 +1000 Subject: [PATCH] Load distutils on all platforms EXCEPT Solaris. Solaris doesn't ship distutils with with the default Python package. This patch fixes "service" on Solaris since 30d6713. --- lib/ansible/modules/system/service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/service.py b/lib/ansible/modules/system/service.py index fdcc4d39b9e..108427bb954 100644 --- a/lib/ansible/modules/system/service.py +++ b/lib/ansible/modules/system/service.py @@ -106,7 +106,8 @@ import select import time import string -if platform.system() == 'Linux': +# The distutils module is not shipped with SUNWPython on Solaris. +if platform.system() != 'SunOS': from distutils.version import LooseVersion class Service(object):