Commit 8a4deba0 by Brian Coca

Merge pull request #11139 from wenottingham/galaxy-fix

Handle when role_dependencies is None.
parents 43385e26 2a003cba
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment