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

Merge pull request #8948 from sergevanginderachter/issue_8823

ansible-galaxy: exit with rc 1 if role doesn't exist/is not found
This commit is contained in:
James Cammarata 2014-09-16 21:47:29 -05:00
commit b7a74e216f

View file

@ -759,6 +759,7 @@ def execute_install(args, options, parser):
role_data = api_lookup_role_by_name(api_server, role_src) role_data = api_lookup_role_by_name(api_server, role_src)
if not role_data: if not role_data:
print "- sorry, %s was not found on %s." % (role_src, api_server) print "- sorry, %s was not found on %s." % (role_src, api_server)
exit_without_ignore(options)
continue continue
role_versions = api_fetch_role_related(api_server, 'versions', role_data['id']) role_versions = api_fetch_role_related(api_server, 'versions', role_data['id'])