From 69559532b516145a19b7bf2ba80220d3c531a6a0 Mon Sep 17 00:00:00 2001 From: Bec Callow Date: Fri, 20 Dec 2024 08:24:02 +1000 Subject: [PATCH] Use latest version of go CLI --- go.mod | 2 +- go.sum | 1 + octopusdeploy/resource_project_scheduled_trigger.go | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index f5a145f5..cbfd298d 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.22 toolchain go1.22.3 require ( - github.com/OctopusDeploy/go-octopusdeploy/v2 v2.63.1 + github.com/OctopusDeploy/go-octopusdeploy/v2 v2.64.0 github.com/OctopusSolutionsEngineering/OctopusTerraformTestFramework v0.0.0-20241206032352-dbc62b2d16cf github.com/google/uuid v1.6.0 github.com/hashicorp/go-cty v1.4.1-0.20200723130312-85980079f637 diff --git a/go.sum b/go.sum index 0a7a2e40..8017f47d 100644 --- a/go.sum +++ b/go.sum @@ -20,6 +20,7 @@ github.com/OctopusDeploy/go-octodiff v1.0.0 h1:U+ORg6azniwwYo+O44giOw6TiD5USk8S4 github.com/OctopusDeploy/go-octodiff v1.0.0/go.mod h1:Mze0+EkOWTgTmi8++fyUc6r0aLZT7qD9gX+31t8MmIU= github.com/OctopusDeploy/go-octopusdeploy/v2 v2.63.1 h1:ShfJ3VZqNblU5V0UnA/UNjQuUrgkljZdDp9Vxh8rhcI= github.com/OctopusDeploy/go-octopusdeploy/v2 v2.63.1/go.mod h1:ggvOXzMnq+w0pLg6C9zdjz6YBaHfO3B3tqmmB7JQdaw= +github.com/OctopusDeploy/go-octopusdeploy/v2 v2.64.0/go.mod h1:ggvOXzMnq+w0pLg6C9zdjz6YBaHfO3B3tqmmB7JQdaw= github.com/OctopusSolutionsEngineering/OctopusTerraformTestFramework v0.0.0-20241206032352-dbc62b2d16cf h1:wuUJ6DbSZEHE4a3SfSJIcoeTQCSI6lbQ+i46ibY14+Q= github.com/OctopusSolutionsEngineering/OctopusTerraformTestFramework v0.0.0-20241206032352-dbc62b2d16cf/go.mod h1:xVv8DvYhhwxtQUQQDfOYA6CY8KTkHXccxQ2RfRj6IJ0= github.com/ProtonMail/go-crypto v1.1.0-alpha.2 h1:bkyFVUP+ROOARdgCiJzNQo2V2kiB97LyUpzH9P6Hrlg= diff --git a/octopusdeploy/resource_project_scheduled_trigger.go b/octopusdeploy/resource_project_scheduled_trigger.go index adb95cca..d0e31896 100644 --- a/octopusdeploy/resource_project_scheduled_trigger.go +++ b/octopusdeploy/resource_project_scheduled_trigger.go @@ -28,7 +28,7 @@ func resourceProjectScheduledTriggerRead(ctx context.Context, d *schema.Resource spaceId := d.Get("space_id").(string) spaceId = util.Ternary(len(spaceId) > 0, spaceId, client.GetSpaceID()) - scheduledTrigger, err := triggers.GetByID(client, spaceId, d.Id()) + scheduledTrigger, err := triggers.GetById(client, spaceId, d.Id()) if scheduledTrigger == nil { d.SetId("") @@ -114,7 +114,7 @@ func resourceProjectScheduledTriggerUpdate(ctx context.Context, d *schema.Resour func resourceProjectScheduledTriggerDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { client := m.(*client.Client) spaceId := d.Get("space_id").(string) - err := triggers.DeleteByID(client, spaceId, d.Id()) + err := triggers.DeleteById(client, spaceId, d.Id()) if err != nil { return diag.FromErr(err)