You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've thrown a basic https://nsone.net/ provider together, however the configuration for nsone answers is fairly complex, so I've used deeper structures than most other terraform providers use, and I think this is triggering a core bug.
So in one diff, the '${nsone_datafeed.xxxx.id}' is intact, in the other it's been replaced with the generated id hash (e.g. 55c929e59f782d668e6945ca).
If you'd like to run this yourself, you can sign up to a free tier nsone account, which gives you more than enough records / queries to play around with this.
The text was updated successfully, but these errors were encountered:
Hey @bobtfish! Its been awhile and I don't think we handle this any cleaner but since we haven't ha any other provider require this I'm going to go ahead and close this. If someone submitted a PR to support this I'd be open to it, but otherwise its not on our plan atm.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 21, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've thrown a basic https://nsone.net/ provider together, however the configuration for nsone answers is fairly complex, so I've used deeper structures than most other terraform providers use, and I think this is triggering a core bug.
My example code is here:
https://github.com/bobtfish/terraform-provider-nsone/blob/master/example/example.tf
Note that I'm interpolating into a 2 level deep structure, which I'm not sure any other providers actually do ;)
This reproducibly fails with 'diffs didn't match" during the first apply, but works correctly with a 2nd apply (and is fine from then on).
Run 1: https://github.com/bobtfish/terraform-provider-nsone/blob/master/example/tf.log
Run 2: https://github.com/bobtfish/terraform-provider-nsone/blob/master/example/tf_run2.log
The issue seems to be that we're diffing things in the first run before the variables are correctly interpolated.
Taking the log above, and extracting the interesting segments, we get:
So in one diff, the '${nsone_datafeed.xxxx.id}' is intact, in the other it's been replaced with the generated id hash (e.g. 55c929e59f782d668e6945ca).
If you'd like to run this yourself, you can sign up to a free tier nsone account, which gives you more than enough records / queries to play around with this.
The text was updated successfully, but these errors were encountered: