1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

More descriptive error message if init system is unknown

This commit is contained in:
Adam Nielsen 2014-03-30 11:46:13 +10:00
parent 7f18387c5b
commit 1a9c5947ed

View file

@ -565,7 +565,7 @@ class LinuxService(Service):
def service_enable(self):
if self.enable_cmd is None:
self.module.fail_json(msg='service name not recognized')
self.module.fail_json(msg='unknown init system, cannot enable service')
# FIXME: we use chkconfig or systemctl
# to decide whether to run the command here but need something