Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion internal/elasticsearch/cluster/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,5 @@ func resourceClusterSettingsDelete(ctx context.Context, d *schema.ResourceData,
return diags
}

d.SetId("")
return diags
}
1 change: 0 additions & 1 deletion internal/elasticsearch/cluster/slm.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,5 @@ func resourceSlmDelete(ctx context.Context, d *schema.ResourceData, meta interfa
if diags := client.DeleteElasticsearchSlm(ctx, id.ResourceId); diags.HasError() {
return diags
}
d.SetId("")
return diags
}
1 change: 0 additions & 1 deletion internal/elasticsearch/cluster/snapshot_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,5 @@ func resourceSnapRepoDelete(ctx context.Context, d *schema.ResourceData, meta in
if diags := client.DeleteElasticsearchSnapshotRepository(ctx, compId.ResourceId); diags.HasError() {
return diags
}
d.SetId("")
return diags
}
1 change: 0 additions & 1 deletion internal/elasticsearch/index/component_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,5 @@ func resourceComponentTemplateDelete(ctx context.Context, d *schema.ResourceData
if diags := client.DeleteElasticsearchComponentTemplate(ctx, compId.ResourceId); diags.HasError() {
return diags
}
d.SetId("")
return diags
}
1 change: 0 additions & 1 deletion internal/elasticsearch/index/data_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,5 @@ func resourceDataStreamDelete(ctx context.Context, d *schema.ResourceData, meta
return diags
}

d.SetId("")
return diags
}
1 change: 0 additions & 1 deletion internal/elasticsearch/index/ilm.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,5 @@ func resourceIlmDelete(ctx context.Context, d *schema.ResourceData, meta interfa
return diags
}

d.SetId("")
return diags
}
1 change: 0 additions & 1 deletion internal/elasticsearch/index/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,5 @@ func resourceIndexDelete(ctx context.Context, d *schema.ResourceData, meta inter
if diags := client.DeleteElasticsearchIndex(ctx, compId.ResourceId); diags.HasError() {
return diags
}
d.SetId("")
return diags
}
1 change: 0 additions & 1 deletion internal/elasticsearch/index/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,5 @@ func resourceIndexTemplateDelete(ctx context.Context, d *schema.ResourceData, me
if diags := client.DeleteElasticsearchIndexTemplate(ctx, compId.ResourceId); diags.HasError() {
return diags
}
d.SetId("")
return diags
}
1 change: 0 additions & 1 deletion internal/elasticsearch/ingest/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,5 @@ func resourceIngestPipelineTemplateDelete(ctx context.Context, d *schema.Resourc
return diags
}

d.SetId("")
return diags
}
1 change: 0 additions & 1 deletion internal/elasticsearch/security/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,5 @@ func resourceSecurityRoleDelete(ctx context.Context, d *schema.ResourceData, met
return diags
}

d.SetId("")
return diags
}
1 change: 0 additions & 1 deletion internal/elasticsearch/security/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,5 @@ func resourceSecurityUserDelete(ctx context.Context, d *schema.ResourceData, met
return diags
}

d.SetId("")
return diags
}