mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixing ansible-galaxy bug introduced in 399fe322
This commit is contained in:
parent
1711df3b75
commit
7b4df6e98e
1 changed files with 4 additions and 3 deletions
|
@ -765,9 +765,10 @@ def execute_install(args, options, parser):
|
||||||
role["version"] = str(loose_versions[-1])
|
role["version"] = str(loose_versions[-1])
|
||||||
else:
|
else:
|
||||||
role["version"] = 'master'
|
role["version"] = 'master'
|
||||||
else:
|
elif role['version'] != 'master':
|
||||||
if role_versions and role["version"] not in [a.get('name',None) for a in role_versions]:
|
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
|
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)
|
exit_without_ignore(options)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue