From e9efd008edce0a1c9698fa795c2664aee9e546f8 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 2 Nov 2015 15:11:26 -0500 Subject: [PATCH] moved distutils import to mac, darn solaris would complain in certain cases --- lib/ansible/module_utils/facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index b67d448af1..6d1cc4e725 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -37,7 +37,6 @@ import ConfigParser import StringIO from string import maketrans -from distutils.version import LooseVersion try: import selinux @@ -557,6 +556,7 @@ class Facts(object): # start with the easy ones elif self.facts['distribution'] == 'MacOSX': #FIXME: find way to query executable, version matching is not ideal + from distutils.version import LooseVersion if LooseVersion(platform.mac_ver()[0]) >= LooseVersion('10.4'): self.facts['service_mgr'] = 'launchd' else: