diff --git a/twingate/internal/provider/resource/resource.go b/twingate/internal/provider/resource/resource.go index 41283233..c3757ab4 100644 --- a/twingate/internal/provider/resource/resource.go +++ b/twingate/internal/provider/resource/resource.go @@ -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 } }