in ambari-infra-solr-client/src/main/python/migrationConfigGenerator.py [0:0]
def get_installed_components(blueprint):
components = []
if 'host_groups' in blueprint:
for host_group in blueprint['host_groups']:
if 'components' in host_group:
for component in host_group['components']:
if 'name' in component:
if component['name'] not in components:
components.append(component['name'])
return components