Skip to content

Commit

Permalink
fixed resource security policy on update
Browse files Browse the repository at this point in the history
  • Loading branch information
vmanilo committed Apr 1, 2024
1 parent 33f8ceb commit ed1a336
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion twingate/internal/provider/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,8 @@ func (r *twingateResource) Read(ctx context.Context, req resource.ReadRequest, r
resource.IsAuthoritative = convertAuthoritativeFlag(state.IsAuthoritative)

if state.SecurityPolicyID.ValueString() == "" {
resource.SecurityPolicyID = stringToPointer("")
emptyPolicy := ""
resource.SecurityPolicyID = &emptyPolicy
}
}

Expand Down

0 comments on commit ed1a336

Please sign in to comment.