Skip to content

Commit

Permalink
update error message & document
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyeqf committed Nov 7, 2024
1 parent 11fe128 commit 93d6efd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func resourceSentinelAlertRuleFusionUpdate(d *pluginsdk.ResourceData, meta inter

resp, err := client.Get(ctx, *id)
if err != nil {
return fmt.Errorf("retrieving %q: %+v", id, err)
return fmt.Errorf("retrieving %s: %+v", id, err)
}

if resp.Model == nil {
Expand Down Expand Up @@ -234,7 +234,7 @@ func resourceSentinelAlertRuleFusionRead(d *pluginsdk.ResourceData, meta interfa
resp, err := client.Get(ctx, *id)
if err != nil {
if response.WasNotFound(resp.HttpResponse) {
log.Printf("[DEBUG] %q was not found - removing from state!", id)
log.Printf("[DEBUG] %s was not found - removing from state!", id)
d.SetId("")
return nil
}
Expand Down Expand Up @@ -279,7 +279,7 @@ func resourceSentinelAlertRuleFusionDelete(d *pluginsdk.ResourceData, meta inter
}

if _, err := client.Delete(ctx, *id); err != nil {
return fmt.Errorf("deleting Sentinel Alert Rule Fusion %q: %+v", id, err)
return fmt.Errorf("deleting %s: %+v", id, err)
}

return nil
Expand Down
8 changes: 4 additions & 4 deletions website/docs/5.0-upgrade-guide.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ Please follow the format in the example below for listing breaking changes in re
* The `example_property_with_changed_default` property now defaults to `NewDefault`.
```

### `azurerm_sentinel_alert_rule_fusion`

* The deprecated `name` property has been removed.

### `azurerm_storage_account`

* The deprecated `queue_properties` block has been removed and superseded by the `azurerm_storage_account_queue_properties` resource.
Expand All @@ -72,10 +76,6 @@ Please follow the format in the example below for listing breaking changes in re
* The deprecated `storage_account_name` property has been removed in favour of the `storage_account_id` property.
* The deprecated `resource_manager_id` property has been removed in favour of the `id` property.

### `azurerm_sentinel_alert_rule_fusion`

* The deprecated `name` property has been removed.

## Breaking Changes in Data Sources

Please follow the format in the example below for listing breaking changes in data sources:
Expand Down

0 comments on commit 93d6efd

Please sign in to comment.