diff options
author | Tim G <github@darkgate.net> | 2015-01-14 13:15:38 +1000 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2015-02-17 14:45:25 -0600 |
commit | 37403aefc20700fe34c03fe536036e2597bd5c02 (patch) | |
tree | 3a5398341088046b5ac015f749166c8bc175e377 | |
parent | 884ebf561651bc467377e8c59ea3828a447424a1 (diff) | |
download | ansible-modules-core-37403aefc20700fe34c03fe536036e2597bd5c02.tar.gz |
distutils is not available on some non-Linux OS's
-rw-r--r-- | system/service.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/service.py b/system/service.py index 61915709..169f62a7 100644 --- a/system/service.py +++ b/system/service.py @@ -105,7 +105,8 @@ import select import time import string -from distutils.version import LooseVersion +if platform.system() == 'Linux': + from distutils.version import LooseVersion class Service(object): """ |