1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

show role search path when not finding a role

fixes #9770
This commit is contained in:
Brian Coca 2015-07-28 19:07:47 -04:00
parent adc8a32c65
commit cc85473c1e

View file

@ -155,7 +155,7 @@ class RoleDefinition(Base, Become, Conditional, Taggable):
# FIXME: make the parser smart about list/string entries in
# the yaml so the error line/file can be reported here
raise AnsibleError("the role '%s' was not found" % role_name)
raise AnsibleError("the role '%s' was not found in %s" % (role_name, ":".join(role_search_paths)))
def _split_role_params(self, ds):
'''