mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Better error msg for basic.get_bin_path()
Include the searched paths in the error message.
This commit is contained in:
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):
|
||||
|
||||
Reference in New Issue
Block a user