mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 16:53:11 +00:00
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.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user