Skip to content

Commit

Permalink
PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
odeddoek committed Sep 18, 2024
1 parent 1b9757a commit 18655a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/resources/port_entity.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion port/entity/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18655a0

Please sign in to comment.