Closed
Description
When the cron expression is not valid, it will fail to apply the plan with a generic error message
unexpected end of JSON input
Trying to add a trigger with an invalid expression:
Terraform will perform the following actions:
# codefresh_pipeline_cron_trigger.test will be created
+ resource "codefresh_pipeline_cron_trigger" "test" {
+ expression = "*/1 * * * test"
+ id = (known after apply)
+ message = "Example Cron Trigger"
+ pipeline_id = "638dd23ef1882a1825e515d8"
}
Plan: 1 to add, 0 to change, 0 to destroy.
Result:
codefresh_pipeline_cron_trigger.test: Creating...
╷
│ Error: unexpected end of JSON input