def check_node_group_template_unique_name(name): if name in [t.name for t in api.get_node_group_templates()]: raise ex.NameAlreadyExistsException("NodeGroup template with name '%s'" " already exists" % name)
def check_node_group_template_unique_name(name): if name in [t.name for t in api.get_node_group_templates()]: raise ex.NameAlreadyExistsException("NodeGroup template with name '%s'" " already exists" % name)
def node_group_templates_list(): return u.render( node_group_templates=[t.to_dict() for t in api.get_node_group_templates()])
def node_group_templates_list(): return u.render(node_group_templates=[ t.to_dict() for t in api.get_node_group_templates(**u.get_request_args().to_dict()) ])
def node_group_templates_list(): return u.render( node_group_templates=[t.to_dict() for t in api.get_node_group_templates( **u.get_request_args().to_dict())])
def node_group_templates_list(): return u.render( node_group_templates=[t.to_dict() for t in api.get_node_group_templates()])