From a765df2833e44aaa0abc9854e90099e0f7e1fa80 Mon Sep 17 00:00:00 2001 From: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com> Date: Tue, 4 Mar 2025 21:08:17 -0800 Subject: [PATCH] docs(kql_database): update invitation_token_wo description to indicate write-only status --- docs/resources/kql_database.md | 2 +- internal/pkg/fabricitem/resource_item.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/resources/kql_database.md b/docs/resources/kql_database.md index 91eff6a..863dd51 100644 --- a/docs/resources/kql_database.md +++ b/docs/resources/kql_database.md @@ -141,7 +141,7 @@ Required: Optional: - `invitation_token` (String, Sensitive, Deprecated) Invitation token to follow the source database. Only allowed when `database_type` is `Shortcut`. -- `invitation_token_wo` (String) Invitation token (WO) to follow the source database. Only allowed when `database_type` is `Shortcut`. +- `invitation_token_wo` (String, [Write-only](https://developer.hashicorp.com/terraform/language/resources/ephemeral#write-only-arguments)) Invitation token (WO) to follow the source database. Only allowed when `database_type` is `Shortcut`. - `invitation_token_wo_version` (Number) The version of the `invitation_token_wo` - `source_cluster_uri` (String) The URI of the source Eventhouse or Azure Data Explorer cluster. Only allowed when `database_type` is `Shortcut`. - `source_database_name` (String) The name of the database to follow in the source Eventhouse or Azure Data Explorer cluster. Only allowed when `database_type` is `Shortcut`. diff --git a/internal/pkg/fabricitem/resource_item.go b/internal/pkg/fabricitem/resource_item.go index 61bfac8..d301e07 100644 --- a/internal/pkg/fabricitem/resource_item.go +++ b/internal/pkg/fabricitem/resource_item.go @@ -210,7 +210,7 @@ func (r *ResourceFabricItem) Delete(ctx context.Context, req resource.DeleteRequ tflog.Debug(ctx, "DELETE", map[string]any{ "action": "start", }) - + var state resourceFabricItemModel if resp.Diagnostics.Append(req.State.Get(ctx, &state)...); resp.Diagnostics.HasError() {