Skip to content

Commit

Permalink
stages_identification: fix captcha stage not being un-settable (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeryJu authored Jan 13, 2025
1 parent c602d43 commit 8d90ada
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions internal/provider/resource_stage_identification.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,10 @@ func resourceStageIdentificationSchemaToProvider(d *schema.ResourceData) *api.Id
ShowSourceLabels: api.PtrBool(d.Get("show_source_labels").(bool)),
CaseInsensitiveMatching: api.PtrBool(d.Get("case_insensitive_matching").(bool)),
Sources: castSlice[string](d.Get("sources").([]interface{})),
PasswordStage: *api.NewNullableString(api.PtrString(d.Get("password_stage").(string))),
CaptchaStage: *api.NewNullableString(api.PtrString(d.Get("captcha_stage").(string))),
}

if h, hSet := d.GetOk("password_stage"); hSet {
r.PasswordStage.Set(api.PtrString(h.(string)))
}
if h, hSet := d.GetOk("captcha_stage"); hSet {
r.CaptchaStage.Set(api.PtrString(h.(string)))
}
if h, hSet := d.GetOk("enrollment_flow"); hSet {
r.EnrollmentFlow.Set(api.PtrString(h.(string)))
}
Expand Down

0 comments on commit 8d90ada

Please sign in to comment.