Skip to content

Commit

Permalink
Merge pull request #4295 from stankolubomir/master
Browse files Browse the repository at this point in the history
ref #4118 Fix to display deprecation message for cloudflare_worker_cron_trigger resource correctly
  • Loading branch information
jacobbednarz authored Oct 17, 2024
2 parents 3110f43 + 4eccff6 commit d0f5c00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/4295.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/cloudflare_workers_cron_trigger: fix incorrectly reported deprecated resource
```
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
}
}

Expand All @@ -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.",
}
}

Expand Down

0 comments on commit d0f5c00

Please sign in to comment.