Better error msg for basic.get_bin_path()
Include the searched paths in the error message.
This commit is contained in:
parent
35fef6fb84
commit
2597c1236d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue