Hello,
We are getting very odd behaviour when we attempt to create a schedule (genesyscloud_architect_schedules object) using Terraform MyPureCloud client version 1.23.0.
Schedule file:
resource "genesyscloud_architect_schedules" "tsls_dt_0701xxxx_0000-0859" {
name = "name"
division_id = division_id
description = "description"
start = "2024-07-01T00:00:00.000000"
end = "2024-07-01T08:59:59.000000"
rrule = "FREQ=YEARLY;INTERVAL=1;BYMONTH=07;BYMONTHDAY=01"
}
Steps:
-
Terraform reports that an object will be created:
module.architect_schedules.genesyscloud_architect_schedules.tsls_dt_0701xxxx_0000-0859 will be created -
The log then prints the following message for 5 minutes:
module.architect_schedules.genesyscloud_architect_schedules.tsls_dt_0701xxxx_0000-0859: Still creating... [5m0s elapsed] -
The run then errors out with the following:
Error: mismatch on attribute rrule:
expected value: FREQ=YEARLY;INTERVAL=1;BYMONTH=07;BYMONTHDAY=01
actual value: FREQ=YEARLY;INTERVAL=1;BYMONTH=7;BYMONTHDAY=1
The issues/troubleshooting:
- According to the actual value in the error, the rrule in our file is correct
- Even though the run reports an error, the schedule actually got created in the environment
- Checking the schedule through the API call, it appears the API response is not using 0-padding for month and day
{
"id": "...",
"name": "name",
...
"state": "active",
"modifiedByApp": "public-api-v2/7567 (i-0291180f22200f1a4)",
"createdByApp": "public-api-v2/7567 (i-0291180f22200f1a4)",
"start": "2024-07-01T00:00:00.000",
"end": "2024-07-01T08:59:59.000",
"rrule": "FREQ=YEARLY;INTERVAL=1;BYMONTH=7;BYMONTHDAY=1",
...
}
I suspect point 3 above is the "root cause" but don't have any way to prove it.
Thank you.