Fix instance comparison for deps in bin/ansible-galaxy

Fixes #8884
pull/8861/merge
James Cammarata 10 years ago
parent 5a7cbdda7e
commit 9adde1eab0

@ -787,7 +787,7 @@ def execute_install(args, options, parser):
else:
role_dependencies = role_data['summary_fields']['dependencies'] # api_fetch_role_related(api_server, 'dependencies', role_data['id'])
for dep in role_dependencies:
if isinstance(dep, str):
if isinstance(dep, basestring):
dep = ansible.utils.role_spec_parse(dep)
else:
dep = ansible.utils.role_yaml_parse(dep)

Loading…
Cancel
Save