def _create_node_group_template(self, flavor='42'): ng_tmpl = { "plugin_name": "vanilla", "hadoop_version": "1.2.1", "node_processes": ["namenode"], "name": "master", "flavor_id": flavor } return api.create_node_group_template(ng_tmpl).id
def node_group_templates_create(data): return u.render(api.create_node_group_template(data).to_wrapped_dict())