Skip to content

Instantly share code, notes, and snippets.

@holyketzer
Created July 18, 2014 14:25
Show Gist options
  • Save holyketzer/9730aa440deca8e6247a to your computer and use it in GitHub Desktop.
Save holyketzer/9730aa440deca8e6247a to your computer and use it in GitHub Desktop.
var components = recommendations.blueprint.host_groups.map(function(group) {
return group.components.map(function(component) {
return recommendations.blueprint_cluster_binding.host_groups.findProperty('name', group.name).hosts.map(function(host) {
return { component: component.name, host: host.fqdn};
});
});
});
components = [].concat.apply([], components);
components = [].concat.apply([], components);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment