Commit 1b3f77fa by James Cammarata

Merge pull request #6759 from Malvineous/devel

More descriptive error message if init system is unknown
parents 6e809c2b 1a9c5947
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment