More descriptive error message if init system is unknown

reviewable/pr18780/r1
Adam Nielsen 11 years ago
parent eef11f0bf1
commit b35086c7a3

@ -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

Loading…
Cancel
Save