-
Notifications
You must be signed in to change notification settings - Fork 2
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
Empty Diff after import of org.rftemplate
#45
Comments
Hi @zbuchheit. Thanks for reporting this issue. Do you know if this perma-diff reproduces in Terraform? |
Looks like with TF it is functionally the same, but shows the diff changes it is wanting to do for state. Terraform Output
|
Awesome. Thanks for running that down. This might be related to pulumi/pulumi-terraform-bridge#1501, where we are correctly discovering a diff (as TF does) but we are not displaying what is changing. |
makes sense, I don't think it is functionally blocking, but wanted to make sure it was tracked and figured it would be a good example to help triage in the bridge. |
this seems to be fixed in the latest release of the upstream provider |
Cannot close issue:
Please fix these problems and try again. |
well, apparently I have to be taught this lesson 3 times today |
Describe what happened
When attempting to import an org.rftemplate I ran into an issue where it detects an empty diff after importing the resource. It appears the issue stems from the outputs having some default values that want to be added but bubble up as an empty diff.
Also, oddly enough, if I create the resource through pulumi, delete it from state, then re-import it, I won't get the empty diff. It only occurs with a fresh import of the resource.
It appears it is adding the defaults provided by the provider to the outputs for example, https://github.com/Juniper/terraform-provider-mist/blob/d21d5b42f4ee8b1fe1ba35936fc451bc2ac25905/internal/resource_org_rftemplate/org_rftemplate_resource_gen.go#L111
Sample program
pulumi up
Log output
N/A
Affected Resource(s)
org.Rftemplate
Output of
pulumi about
Latest version of the provider 0.0.10
Additional context
Diff between resources in state after accepting the empty diff changes
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: