def _create_cluster_template(self, ng_id): cl_tmpl = { "plugin_name": "fake", "hadoop_version": "0.1", "node_groups": [ {"name": "master", "count": 1, "node_group_template_id": "%s" % ng_id} ], "name": "test-template" } return api.create_cluster_template(cl_tmpl).id
def _create_cluster_template(self, ng_id): cl_tmpl = { "plugin_name": "fake", "hadoop_version": "0.1", "node_groups": [{ "name": "master", "count": 1, "node_group_template_id": "%s" % ng_id }], "name": "test-template" } return api.create_cluster_template(cl_tmpl).id
def cluster_templates_create(data): return u.render(api.create_cluster_template(data).to_wrapped_dict())