Merge pull request #7076 from mscherer/better_message_service
Add a better error message for service
This commit is contained in:
commit
f6679d4ad4
1 changed files with 1 additions and 1 deletions
|
@ -565,7 +565,7 @@ class LinuxService(Service):
|
|||
def service_enable(self):
|
||||
|
||||
if self.enable_cmd is None:
|
||||
self.module.fail_json(msg='unknown init system, cannot enable service')
|
||||
self.module.fail_json(msg='cannot detect command to enable service %s, typo or init system potentially unknown' % self.name)
|
||||
|
||||
# FIXME: we use chkconfig or systemctl
|
||||
# to decide whether to run the command here but need something
|
||||
|
|
Loading…
Reference in a new issue