From e91e30cd5e457ef702ac7de1e07698dcfb1f9336 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 9 Oct 2014 03:11:46 -0400 Subject: [PATCH] Fix unspecified role versions. Fixes #9236 --- bin/ansible-galaxy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ansible-galaxy b/bin/ansible-galaxy index adc93166bf4..9018e6c2059 100755 --- a/bin/ansible-galaxy +++ b/bin/ansible-galaxy @@ -755,7 +755,7 @@ def execute_install(args, options, parser): continue role_versions = api_fetch_role_related(api_server, 'versions', role_data['id']) - if "version" not in role: + if "version" not in role or role['version'] == '': # convert the version names to LooseVersion objects # and sort them to get the latest version. If there # are no versions in the list, we'll grab the head