fix typo
This commit is contained in:
parent
43e45a111c
commit
3a9a62c2b9
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue