Skip to content

Commit

Permalink
Merge pull request #960 from okta/factor_import
Browse files Browse the repository at this point in the history
Fixed import for the `okta_factor` resource
  • Loading branch information
monde authored Feb 10, 2022
2 parents 2d06025 + b7ed26d commit 77b48de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion okta/resource_okta_factor.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func resourceFactorPut(ctx context.Context, d *schema.ResourceData, m interface{
}

func resourceFactorRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
factor, resp, err := getSupplementFromMetadata(m).GetOrgFactor(ctx, d.Get("provider_id").(string))
factor, resp, err := getSupplementFromMetadata(m).GetOrgFactor(ctx, d.Id())
if err := suppressErrorOn404(resp, err); err != nil {
return diag.Errorf("failed to find factor: %v", err)
}
Expand Down

0 comments on commit 77b48de

Please sign in to comment.