Fix instance comparison for deps in bin/ansible-galaxy

Fixes #8884
This commit is contained in:
James Cammarata 2014-09-04 09:34:32 -05:00
parent 5a7cbdda7e
commit 9adde1eab0

View file

@ -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)