From c427a829a07dbe1390a9ec1d81c8ae7534ed8455 Mon Sep 17 00:00:00 2001 From: Peter Gehres Date: Thu, 13 Feb 2014 22:47:14 -0800 Subject: [PATCH] Adding better failure output for chkconfig failures rather than just saying that the service name is unknown --- library/system/service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/system/service b/library/system/service index 2e26a47b63..732d868c78 100644 --- a/library/system/service +++ b/library/system/service @@ -577,7 +577,7 @@ class LinuxService(Service): self.execute_command("%s --add %s" % (self.enable_cmd, self.name)) (rc, out, err) = self.execute_command("%s --list %s" % (self.enable_cmd, self.name)) if not self.name in out: - self.module.fail_json(msg="unknown service name") + self.module.fail_json(msg="service %s does not support chkconfig" % self.name) state = out.split()[-1] if self.enable and ( "3:on" in out and "5:on" in out ): return