summaryrefslogtreecommitdiffstats
path: root/bin/ansible-galaxy
diff options
context:
space:
mode:
authorSerge van Ginderachter <serge@vanginderachter.be>2014-09-09 21:57:23 +0200
committerSerge van Ginderachter <serge@vanginderachter.be>2014-09-09 21:57:23 +0200
commit2474ce58198e1f1b2c58c1b99cb6f4547a8c5fd2 (patch)
treeec3e014582f68d4057ac23f0e1f1455cfd6cf86d /bin/ansible-galaxy
parentupdate issue template link (diff)
downloadansible-2474ce58198e1f1b2c58c1b99cb6f4547a8c5fd2.tar.xz
ansible-2474ce58198e1f1b2c58c1b99cb6f4547a8c5fd2.zip
Exit with rc 1 if role doesn't exist/is not found
fixes #8823 modified: bin/ansible-galaxy
Diffstat (limited to 'bin/ansible-galaxy')
-rwxr-xr-xbin/ansible-galaxy1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/ansible-galaxy b/bin/ansible-galaxy
index 146361da93..dd349901eb 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'])