From 18655a0926adffbbf2b77e5cc4d86a4d4c9183ab Mon Sep 17 00:00:00 2001 From: Oded Dwek Date: Wed, 18 Sep 2024 08:52:53 +0300 Subject: [PATCH] PR fixes --- docs/resources/port_entity.md | 2 +- port/entity/resource.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/resources/port_entity.md b/docs/resources/port_entity.md index 080c76bb..16bbea2a 100644 --- a/docs/resources/port_entity.md +++ b/docs/resources/port_entity.md @@ -24,10 +24,10 @@ Entity resource - `icon` (String) The icon of the entity - `identifier` (String) The identifier of the entity - `properties` (Attributes) The properties of the entity (see [below for nested schema](#nestedatt--properties)) +- `relations` (Attributes) The relations of the entity (see [below for nested schema](#nestedatt--relations)) - `run_id` (String) The runID of the action run that created the entity - `teams` (List of String) The teams the entity belongs to - `title` (String) The title of the entity -- `title` (String) The title of the entity - `delete_dependents` (Boolean) On delete, also delete the entity dependents ### Read-Only diff --git a/port/entity/resource.go b/port/entity/resource.go index b4ef19ff..2c940199 100644 --- a/port/entity/resource.go +++ b/port/entity/resource.go @@ -158,7 +158,7 @@ func (r *EntityResource) Update(ctx context.Context, req resource.UpdateRequest, if isBlueprintChanged { // Delete the old entity - err := r.portClient.DeleteEntity(ctx, previousState.Identifier.ValueString(), previousState.Blueprint.ValueString(), false) + err := r.portClient.DeleteEntity(ctx, previousState.Identifier.ValueString(), previousState.Blueprint.ValueString(), previousState.DeleteDependents.ValueBool()) if err != nil { resp.Diagnostics.AddError("failed to delete entity", err.Error()) return