def _create_node_group_template(self, flavor='42'):
     ng_tmpl = {
         "plugin_name": "fake",
         "hadoop_version": "0.1",
         "node_processes": ["namenode"],
         "name": "master",
         "flavor_id": flavor
     }
     return api.create_node_group_template(ng_tmpl).id
 def _create_node_group_template(self, flavor='42'):
     ng_tmpl = {
         "plugin_name": "fake",
         "hadoop_version": "0.1",
         "node_processes": ["namenode"],
         "name": "master",
         "flavor_id": flavor
     }
     return api.create_node_group_template(ng_tmpl).id
Exemple #3
0
def node_group_templates_create(data):
    return u.render(api.create_node_group_template(data).to_wrapped_dict())
Exemple #4
0
def node_group_templates_create(data):
    return u.render(api.create_node_group_template(data).to_wrapped_dict())