-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
core: fix expand bug #676
core: fix expand bug #676
Conversation
After fixing this part, there also needs to be made a change to the example given or the schema of aws_elb.
@mitchellh please have a quick look at this one... I think the Expand() func should be updated according to this PR as currently this seems to cause weird results. Take for example the config provided in #639 when applying the config with
Instead of this (expected) plan:
I do notice that after this fix you still get an error, but that is because of line 15 which changes the availability_zones which has a |
Ow, and I do also noticed that the Doesn't hurt, but I would say it shouldn't remain in there right? |
// If the count is one, check the state for ".0" | ||
// appended, which might exist if we go from | ||
// count > 1 to count == 1. | ||
k := r.Id() + ".0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be within the if
below? Do we have tests covering this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's correct as is... Will have an additional look at the existing test and if we need additional tests, but let's first see what @armon thinks of this...
@svanharmelen I'd like @armon to look at this as well since graph.go is hairy. But on the service looks reasonable. I'm going to pull this down and take a closer look as well. Additionally, yes, it should get removed from the state. I'd say that is a separate issue but we should look into that (outside this PR). |
LGTM! |
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. |
After fixing this part, there also needs to be made a change to the Atlas example or the schema of aws_elb.