diff options
author | James Cammarata <jimi@sngx.net> | 2014-09-08 20:20:29 +0200 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2014-09-08 20:20:51 +0200 |
commit | 7b4df6e98eae9026644fd6cbf48fbe890fbf8da8 (patch) | |
tree | a9aab692a0383db2422e924e7feef01889db9678 /bin/ansible-galaxy | |
parent | Allow complex_args to be None (diff) | |
download | ansible-7b4df6e98eae9026644fd6cbf48fbe890fbf8da8.tar.xz ansible-7b4df6e98eae9026644fd6cbf48fbe890fbf8da8.zip |
Fixing ansible-galaxy bug introduced in 399fe322
Diffstat (limited to 'bin/ansible-galaxy')
-rwxr-xr-x | bin/ansible-galaxy | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/ansible-galaxy b/bin/ansible-galaxy index 075fbd6a6f..7598580d82 100755 --- a/bin/ansible-galaxy +++ b/bin/ansible-galaxy @@ -765,9 +765,10 @@ def execute_install(args, options, parser): role["version"] = str(loose_versions[-1]) else: role["version"] = 'master' - else: - if role_versions and role["version"] not in [a.get('name',None) for a in role_versions]: - print "- the specified version (%s) was not found in the list of available versions." % role.version + elif role['version'] != 'master': + if role_versions and role["version"] not in [a.get('name', None) for a in role_versions]: + print 'role is %s' % role + print "- the specified version (%s) was not found in the list of available versions (%s)." % (role['version'], role_versions) exit_without_ignore(options) continue |