Skip to content

Commit

Permalink
[datadog_sensitive_data_scanner_group] Mark resource as missing when …
Browse files Browse the repository at this point in the history
…not found (#2301)
  • Loading branch information
nkzou authored Feb 29, 2024
1 parent ed625c8 commit c8f8c27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datadog/resource_datadog_sensitive_data_scanner_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ func resourceDatadogSensitiveDataScannerGroupRead(ctx context.Context, d *schema

if groupFound := findSensitiveDataScannerGroupHelper(groupId, resp); groupFound != nil {
return updateSensitiveDataScannerGroupState(d, groupFound.Attributes)
} else {
d.SetId("")
}

return nil
Expand Down

0 comments on commit c8f8c27

Please sign in to comment.