diff options
author | Serge van Ginderachter <serge@vanginderachter.be> | 2014-09-09 21:57:23 +0200 |
---|---|---|
committer | Serge van Ginderachter <serge@vanginderachter.be> | 2014-09-09 21:57:23 +0200 |
commit | 2474ce58198e1f1b2c58c1b99cb6f4547a8c5fd2 (patch) | |
tree | ec3e014582f68d4057ac23f0e1f1455cfd6cf86d /bin/ansible-galaxy | |
parent | update issue template link (diff) | |
download | ansible-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-x | bin/ansible-galaxy | 1 |
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']) |