summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2016-11-16 21:29:04 -0500
committerBrian Coca <brian.coca+git@gmail.com>2016-11-16 21:29:04 -0500
commitbb41a005b31a74dca307b0a10424bcec90a8f905 (patch)
tree0cc277f999388bb408457e8717cbd8afb89b67fc /lib
parent5129e2fe169d5d4aac3626d0833bcf952bb89b87 (diff)
downloadansible-bb41a005b31a74dca307b0a10424bcec90a8f905.tar.gz
updated to add tailing msg to missing error
Diffstat (limited to 'lib')
-rw-r--r--lib/ansible/module_utils/service.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/module_utils/service.py b/lib/ansible/module_utils/service.py
index b0d8ee33cf..ac41b6e3a0 100644
--- a/lib/ansible/module_utils/service.py
+++ b/lib/ansible/module_utils/service.py
@@ -45,6 +45,6 @@ def get_sysv_script(name):
def sysv_exists(name):
return os.path.exists(get_sysv_script(name))
-def fail_if_missing(module, found, service):
+def fail_if_missing(module, found, service, msg=''):
if not found:
- module.fail_json(msg='Could not find the requested service %s' % (service))
+ module.fail_json(msg='Could not find the requested service %s: %s' % (service, msg))