[kbn-data-forge] fix mongodb duplicate component name (#190660)

Noticed this error during data forge resources cleanup caused by
duplicated name

```
info Deleteing components for logs-mongodb@template (mongodb_8.0.0_base,mongodb_8.0.0_log,mongodb_8.0.0_host,mongodb_8.0.0_host)
ERROR Failed to delete {"options":{"redaction":{"type":"replace","additionalKeys":[]}},"name":"ResponseError","meta":{"body":{"error":{"root_cause":[{"type":"resource_not_found_exception","reason":"mongodb_8.0.0_host"}],"type":"resource_not_found_exception","reason":"mongodb_8.0.0_host"},
```
This commit is contained in:
Kevin Lacabane 2024-08-19 18:01:22 +02:00 committed by GitHub
parent 6d1426acd8
commit b82c49f825
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,7 +21,7 @@ const components = [
{ name: `${MONGODB}_${ECS_VERSION}_base`, template: base },
{ name: `${MONGODB}_${ECS_VERSION}_log`, template: log },
{ name: `${MONGODB}_${ECS_VERSION}_host`, template: host },
{ name: `${MONGODB}_${ECS_VERSION}_host`, template: mongodb },
{ name: `${MONGODB}_${ECS_VERSION}_mongodb`, template: mongodb },
];
export const indexTemplate: IndexTemplateDef = {