Better error msg for basic.get_bin_path()

Include the searched paths in the error message.
pull/19565/head
Adrian Likins 8 years ago committed by Brian Coca
parent 35fef6fb84
commit 2597c1236d

@ -1843,7 +1843,7 @@ class AnsibleModule(object):
bin_path = path
break
if required and bin_path is None:
self.fail_json(msg='Failed to find required executable %s' % arg)
self.fail_json(msg='Failed to find required executable %s in paths: %s' % (arg, os.pathsep.join(paths)))
return bin_path
def boolean(self, arg):

Loading…
Cancel
Save