Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix okta_app_user_schema_property enum type #1316

Merged
merged 1 commit into from
Sep 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions okta/resource_okta_app_user_custom_schema_property.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ func resourceAppUserSchemaPropertyUpdate(ctx context.Context, d *schema.Resource

func resourceAppUserSchemaPropertyDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
custom := buildCustomUserSchema(d.Get("index").(string), nil)
retypeUserSchemaPropertyEnums(custom)
_, _, err := getOktaClientFromMetadata(m).UserSchema.
UpdateApplicationUserProfile(ctx, d.Get("app_id").(string), *custom)
if err != nil {
Expand All @@ -197,6 +198,7 @@ func updateAppUserSubSchemaProperty(ctx context.Context, d *schema.ResourceData,
subSchema.Union = "DISABLE"
}
custom := buildCustomUserSchema(d.Get("index").(string), subSchema)
retypeUserSchemaPropertyEnums(custom)
bOff := backoff.NewExponentialBackOff()
bOff.MaxElapsedTime = time.Second * 10
bOff.InitialInterval = time.Second
Expand Down
Loading