From 9c16c8f427280c365b9935a794e580cfbe902497 Mon Sep 17 00:00:00 2001 From: Alena Pantuzenko Date: Mon, 8 Apr 2024 10:01:22 -0400 Subject: [PATCH 1/3] Delete a non-actionable warning on the pagerduty_event_orchestration_integration resource --- ...e_pagerduty_event_orchestration_integration.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/pagerduty/resource_pagerduty_event_orchestration_integration.go b/pagerduty/resource_pagerduty_event_orchestration_integration.go index bfe386e17..decdcd7d3 100644 --- a/pagerduty/resource_pagerduty_event_orchestration_integration.go +++ b/pagerduty/resource_pagerduty_event_orchestration_integration.go @@ -28,7 +28,6 @@ func resourcePagerDutyEventOrchestrationIntegration() *schema.Resource { "event_orchestration": { Type: schema.TypeString, Required: true, - ValidateDiagFunc: addIntegrationMigrationWarning(), }, "id": { Type: schema.TypeString, @@ -58,20 +57,6 @@ func resourcePagerDutyEventOrchestrationIntegration() *schema.Resource { } } -func addIntegrationMigrationWarning() schema.SchemaValidateDiagFunc { - return func(v interface{}, p cty.Path) diag.Diagnostics { - var diags diag.Diagnostics - - diags = append(diags, diag.Diagnostic{ - Severity: diag.Warning, - Summary: "Modifying the event_orchestration property of the 'pagerduty_event_orchestration_integration' resource will cause all future events sent with this integration's routing key to be evaluated against the new Event Orchestration.", - AttributePath: p, - }) - - return diags - } -} - func getEventOrchestrationIntegrationPayloadData(d *schema.ResourceData) (string, *pagerduty.EventOrchestrationIntegration) { orchestrationId := d.Get("event_orchestration").(string) From 255a7724f22468c2a172ea40cfbc3f08c88c49d8 Mon Sep 17 00:00:00 2001 From: Alena Pantuzenko Date: Mon, 8 Apr 2024 10:07:04 -0400 Subject: [PATCH 2/3] make fmt --- .../resource_pagerduty_event_orchestration_integration.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pagerduty/resource_pagerduty_event_orchestration_integration.go b/pagerduty/resource_pagerduty_event_orchestration_integration.go index decdcd7d3..1641112cb 100644 --- a/pagerduty/resource_pagerduty_event_orchestration_integration.go +++ b/pagerduty/resource_pagerduty_event_orchestration_integration.go @@ -26,8 +26,8 @@ func resourcePagerDutyEventOrchestrationIntegration() *schema.Resource { }, Schema: map[string]*schema.Schema{ "event_orchestration": { - Type: schema.TypeString, - Required: true, + Type: schema.TypeString, + Required: true, }, "id": { Type: schema.TypeString, From ed044cd578dc933193eb9b153eb9cce255e2e7ed Mon Sep 17 00:00:00 2001 From: Alena Pantuzenko Date: Mon, 8 Apr 2024 10:19:26 -0400 Subject: [PATCH 3/3] delete unused import --- pagerduty/resource_pagerduty_event_orchestration_integration.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pagerduty/resource_pagerduty_event_orchestration_integration.go b/pagerduty/resource_pagerduty_event_orchestration_integration.go index 1641112cb..42bf4f643 100644 --- a/pagerduty/resource_pagerduty_event_orchestration_integration.go +++ b/pagerduty/resource_pagerduty_event_orchestration_integration.go @@ -8,7 +8,6 @@ import ( "strings" "time" - "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"