From 93d6efdc82ddd110019a687d3c91cb8a6797c9de Mon Sep 17 00:00:00 2001 From: ziyeqf <51212351+ziyeqf@users.noreply.github.com> Date: Thu, 7 Nov 2024 23:29:14 +0800 Subject: [PATCH] update error message & document --- .../sentinel/sentinel_alert_rule_fusion_resource.go | 6 +++--- website/docs/5.0-upgrade-guide.html.markdown | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/services/sentinel/sentinel_alert_rule_fusion_resource.go b/internal/services/sentinel/sentinel_alert_rule_fusion_resource.go index 8c6e22233281..02b67abf2db9 100644 --- a/internal/services/sentinel/sentinel_alert_rule_fusion_resource.go +++ b/internal/services/sentinel/sentinel_alert_rule_fusion_resource.go @@ -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 { @@ -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 } @@ -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 diff --git a/website/docs/5.0-upgrade-guide.html.markdown b/website/docs/5.0-upgrade-guide.html.markdown index 3e3a3ac8ca89..2bbf4c6b789d 100644 --- a/website/docs/5.0-upgrade-guide.html.markdown +++ b/website/docs/5.0-upgrade-guide.html.markdown @@ -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. @@ -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: