-
Notifications
You must be signed in to change notification settings - Fork 630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Waitingroom event bugfix #1648
Waitingroom event bugfix #1648
Conversation
…/terraform-provider-cloudflare into waitingroom-event-bugfix
Oops! It looks like no changelog entry is attached to this PR. Please include a release note as described in https://github.com/cloudflare/terraform-provider-cloudflare/blob/master/docs/changelog-process.md. Example:
If you do not require a release note to be included, please add the |
if err != nil { | ||
return cloudflare.WaitingRoomEvent{}, err | ||
} | ||
} | ||
|
||
return cloudflare.WaitingRoomEvent{ | ||
ID: d.Id(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is going to error in the Create
where it is referenced as d.SetId()
isn't called until after the API calls are made and this value doesn't exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, I'll just extract from the ResourceData and set it manually.
is there a test case we should be adding for this as well? |
Before this change, we would see |
The latest commit should get that TestCheck working. Since it wasn't using a pointer before it was comparing to the zero value and would not set if it was a zero value (epoch start). |
acceptance tests are passing
|
This functionality has been released in v3.16.0 of the Terraform Cloudflare Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
cloudflare-go uses the id in the struct to create the path for the API request so it must be set. (https://github.com/cloudflare/cloudflare-go/blob/master/waiting_room.go#L342)