Merge branch 'typo' of https://github.com/Paikan/elasticsearch
This commit is contained in:
commit
a3b21b884c
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue