From 0753759832b71c36c9c9edd8e5dfb6b425b715c0 Mon Sep 17 00:00:00 2001 From: Lubomir Stanko Date: Thu, 17 Oct 2024 08:41:44 +0200 Subject: [PATCH 1/2] ref #4118 Fix to display deprecation message for cloudflare_worker_cron_trigger resource correctly --- .../sdkv2provider/resource_cloudflare_workers_cron_trigger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/sdkv2provider/resource_cloudflare_workers_cron_trigger.go b/internal/sdkv2provider/resource_cloudflare_workers_cron_trigger.go index 5b5fe4a112..785448ce2a 100644 --- a/internal/sdkv2provider/resource_cloudflare_workers_cron_trigger.go +++ b/internal/sdkv2provider/resource_cloudflare_workers_cron_trigger.go @@ -29,6 +29,7 @@ func resourceCloudflareWorkerCronTrigger() *schema.Resource { schedule. Worker Cron Triggers are ideal for running periodic jobs for maintenance or calling third-party APIs to collect up-to-date data. `, "`ScheduledEvent`")), + DeprecationMessage: "`cloudflare_worker_cron_trigger` is now deprecated and will be removed in the next major version. Use `cloudflare_workers_cron_trigger` instead.", } } @@ -48,7 +49,6 @@ func resourceCloudflareWorkersCronTrigger() *schema.Resource { schedule. Worker Cron Triggers are ideal for running periodic jobs for maintenance or calling third-party APIs to collect up-to-date data. `, "`ScheduledEvent`")), - DeprecationMessage: "`cloudflare_worker_cron_trigger` is now deprecated and will be removed in the next major version. Use `cloudflare_workers_cron_trigger` instead.", } } From 4eccff6bbbda454ccc63b7b67de1b66e9e8d3e5f Mon Sep 17 00:00:00 2001 From: Lubomir Stanko Date: Thu, 17 Oct 2024 09:24:31 +0200 Subject: [PATCH 2/2] Add changelog for PR --- .changelog/4295.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/4295.txt diff --git a/.changelog/4295.txt b/.changelog/4295.txt new file mode 100644 index 0000000000..2799a9a8e9 --- /dev/null +++ b/.changelog/4295.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/cloudflare_workers_cron_trigger: fix incorrectly reported deprecated resource +```