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: diff should include removed set items [GH-1823] #2507

Merged
merged 2 commits into from
Jun 26, 2015

Conversation

mitchellh
Copy link
Contributor

Fixes #1823

We didn't include set removal in the diff. I'm not sure why we didn't do that. I added it pretty simply with a couple tests and it didn't break anything else. I suppose we can see in acceptance later if anything breaks but I actually doubt it!

codes := make([][]int, 2)
codes[0] = os.Difference(ns).listCode()
codes[1] = ns.listCode()
for _, list := range codes {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the key change. The diff looks a lot more complicated than it is: just added the removed codes (os.Difference(ns))

@phinze
Copy link
Contributor

phinze commented Jun 26, 2015

LGTM

mitchellh added a commit that referenced this pull request Jun 26, 2015
helper/schema: diff should include removed set items [GH-1823]
@mitchellh mitchellh merged commit 2f08a2b into master Jun 26, 2015
@mitchellh mitchellh deleted the b-set-remove branch June 26, 2015 15:18
@ghost
Copy link

ghost commented May 2, 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 May 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

provider/aws: Inaccurate plan when changing route53_record
2 participants