From 4befe316a3670bfe662927300733d3be6c87f07e Mon Sep 17 00:00:00 2001 From: Carlos Gajardo Date: Fri, 5 Apr 2024 15:07:14 -0300 Subject: [PATCH] wip --- pagerduty/provider.go | 1 + pagerdutyplugin/resource_pagerduty_service.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pagerduty/provider.go b/pagerduty/provider.go index 7d4a41139..09c2f2291 100644 --- a/pagerduty/provider.go +++ b/pagerduty/provider.go @@ -113,6 +113,7 @@ func Provider(isMux bool) *schema.Provider { "pagerduty_escalation_policy": resourcePagerDutyEscalationPolicy(), "pagerduty_maintenance_window": resourcePagerDutyMaintenanceWindow(), "pagerduty_schedule": resourcePagerDutySchedule(), + "pagerduty_service": resourcePagerDutyService(), "pagerduty_service_integration": resourcePagerDutyServiceIntegration(), "pagerduty_team": resourcePagerDutyTeam(), "pagerduty_team_membership": resourcePagerDutyTeamMembership(), diff --git a/pagerdutyplugin/resource_pagerduty_service.go b/pagerdutyplugin/resource_pagerduty_service.go index 0c276f21a..9231d8881 100644 --- a/pagerdutyplugin/resource_pagerduty_service.go +++ b/pagerdutyplugin/resource_pagerduty_service.go @@ -75,7 +75,7 @@ func (r *resourceService) Schema(ctx context.Context, req resource.SchemaRequest "alert_creation": schema.StringAttribute{ Optional: true, Computed: true, - Default: stringdefault.StaticString("create_incidents"), + Default: stringdefault.StaticString("create_alerts_and_incidents"), Validators: []validator.String{ stringvalidator.OneOf("create_alerts_and_incidents", "create_incidents"), },