Skip to content
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

helper/schema: only mark "ForceNew" on resources that cause the ForceNew #9613

Merged
merged 1 commit into from
Nov 8, 2016

Conversation

mitchellh
Copy link
Contributor

Fixes #2748

This changes the diff to only mark "forces new resource" on the fields
that actually caused the new resource, not every field that changed.
This makes diffs much more accurate.

I'd like to request a review but I'm going to defer merging until
Terraform 0.8. Changes like this are very possible to cause "diffs
didn't match" errors and I want some real world testing in a beta before
we hit prod with this.

},

Err: false,
},
}

for tn, tc := range cases {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the changes in this section here (below) are me just converting this to use subtests so you can run one at a time if needed.

@mitchellh mitchellh added this to the Terraform 0.8 milestone Oct 26, 2016
@mitchellh
Copy link
Contributor Author

Thanks, going to hold for a TF 0.8 merge for beta.

@mitchellh mitchellh force-pushed the b-accurate-forcenew branch from a29b793 to 2b023da Compare November 8, 2016 23:38
Fixes #2748

This changes the diff to only mark "forces new resource" on the fields
that actually caused the new resource, not every field that changed.
This makes diffs much more accurate.

I'd like to request a review but I'm going to defer merging until
Terraform 0.8. Changes like this are very possible to cause "diffs
didn't match" errors and I want some real world testing in a beta before
we hit prod with this.
@mitchellh mitchellh force-pushed the b-accurate-forcenew branch from 2b023da to e45debe Compare November 8, 2016 23:49
@mitchellh mitchellh merged commit 95871ad into master Nov 8, 2016
@mitchellh mitchellh deleted the b-accurate-forcenew branch November 8, 2016 23:56
@ghost
Copy link

ghost commented Apr 20, 2020

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 ghost locked and limited conversation to collaborators Apr 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Forces new resource" inaccurate
3 participants