From 2474ce58198e1f1b2c58c1b99cb6f4547a8c5fd2 Mon Sep 17 00:00:00 2001 From: Serge van Ginderachter Date: Tue, 9 Sep 2014 21:57:23 +0200 Subject: [PATCH] Exit with rc 1 if role doesn't exist/is not found fixes #8823 modified: bin/ansible-galaxy --- bin/ansible-galaxy | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/ansible-galaxy b/bin/ansible-galaxy index 146361da93f..dd349901eb5 100755 --- a/bin/ansible-galaxy +++ b/bin/ansible-galaxy @@ -759,6 +759,7 @@ def execute_install(args, options, parser): role_data = api_lookup_role_by_name(api_server, role_src) if not role_data: print "- sorry, %s was not found on %s." % (role_src, api_server) + exit_without_ignore(options) continue role_versions = api_fetch_role_related(api_server, 'versions', role_data['id'])