updated to add tailing msg to missing error

pull/18525/head
Brian Coca 8 years ago
parent 5129e2fe16
commit bb41a005b3

@ -45,6 +45,6 @@ def get_sysv_script(name):
def sysv_exists(name): def sysv_exists(name):
return os.path.exists(get_sysv_script(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: 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))

Loading…
Cancel
Save