Closed ukd1 closed 3 years ago
Digging a little, it appears to be as on https://github.com/franckverrot/terraform-provider-stripe/blob/master/stripe/resource_stripe_plan.go#L188 getOk
is used and returns false if something is zero - https://github.com/franckverrot/terraform-provider-stripe/blob/9996396e8f9aa66be41ec2d79cc01d094b5f3bf6/vendor/github.com/hashicorp/terraform/helper/schema/resource_data.go#L88 specifically on https://github.com/franckverrot/terraform-provider-stripe/blob/9996396e8f9aa66be41ec2d79cc01d094b5f3bf6/vendor/github.com/hashicorp/terraform/helper/schema/resource_data.go#L102
Seems like ValueOrZero
might be useful; but not sure what the side effects are when it's supposed to be nil
...
Hey there, thanks for reporting this.
Do you wanna give a try sending a PR or would you like me to investigate (not sure I'll have time this week though so you can go ahead and try if you'd like to speed things up.) Thanks!
@franckverrot we may have time to do a PR in a couple of weeks time - this is being put as an optional part of some internal work we're doing! If we start the work, I'll make sure we check here / comment here that we are doing so!
Implemented in https://github.com/franckverrot/terraform-provider-stripe/releases/tag/v1.7.0
Thanks @trea and thanks @ukd1 for reporting!
ends up posting this to stripe:
raising a 400 from stripe:
TF errors: