This commit is contained in:
Shay Banon 2012-02-27 19:37:29 +02:00
commit a3b21b884c
2 changed files with 2 additions and 2 deletions

View File

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

View File

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