From 2a003cba881f05ce4f0d102c0dbe4b8867d9fee9 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 2 Jun 2015 22:31:53 -0400 Subject: [PATCH] Handle when role_dependencies is None. --- bin/ansible-galaxy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/ansible-galaxy b/bin/ansible-galaxy index f281bf97ae8..c5ab8f40aff 100755 --- a/bin/ansible-galaxy +++ b/bin/ansible-galaxy @@ -845,6 +845,8 @@ def execute_install(args, options, parser): role_dependencies = role_data['dependencies'] else: role_dependencies = role_data['summary_fields']['dependencies'] # api_fetch_role_related(api_server, 'dependencies', role_data['id']) + if not role_dependencies: + role_dependencies = [] for dep in role_dependencies: if isinstance(dep, basestring): dep = ansible.utils.role_spec_parse(dep)