mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
moved distutils import to mac, darn solaris would complain in certain cases
This commit is contained in:
parent
99d775a0c1
commit
e9efd008ed
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue