Skip to content

Commit

Permalink
fix: when accept risk is not found, do not continue reading it
Browse files Browse the repository at this point in the history
  • Loading branch information
tembleking committed Jan 17, 2025
1 parent b442838 commit 527e60b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sysdig/resource_sysdig_secure_accept_vulnerability_risk.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ func resourceSysdigSecureVulnerabilityAcceptRiskRead(ctx context.Context, d *sch
if err != nil {
if statusCode == http.StatusNotFound {
d.SetId("")
return nil
} else {
return diag.FromErr(err)
}
Expand Down

0 comments on commit 527e60b

Please sign in to comment.