This commit is contained in:
Benjamin Devèze 2012-02-27 16:01:22 +01:00
parent 43e45a111c
commit 3a9a62c2b9
2 changed files with 2 additions and 2 deletions

View File

@ -706,7 +706,7 @@ public class MetaData implements Iterable<IndexMetaData> {
return this; return this;
} }
public Builder remoteTemplate(String templateName) { public Builder removeTemplate(String templateName) {
templates.remove(templateName); templates.remove(templateName);
return this; return this;
} }

View File

@ -58,7 +58,7 @@ public class MetaDataIndexTemplateService extends AbstractComponent {
return currentState; return currentState;
} }
MetaData.Builder metaData = MetaData.builder().metaData(currentState.metaData()) MetaData.Builder metaData = MetaData.builder().metaData(currentState.metaData())
.remoteTemplate(request.name); .removeTemplate(request.name);
return ClusterState.builder().state(currentState).metaData(metaData).build(); return ClusterState.builder().state(currentState).metaData(metaData).build();
} }