Skip to content

Commit

Permalink
Prevent panic when checking for db config secrets (#864)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiught authored Oct 20, 2023
1 parent 91a7f77 commit a0f57f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/auth0/connection/expand.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func expandConnection(
}

// Prevent erasing database configuration secrets.
if !data.IsNewResource() && strategy == management.ConnectionStrategyAuth0 {
if !data.IsNewResource() && strategy == management.ConnectionStrategyAuth0 && connection.Options != nil {
apiConn, err := api.Connection.Read(ctx, data.Id())
if err != nil {
return nil, diag.FromErr(err)
Expand Down

0 comments on commit a0f57f3

Please sign in to comment.