-
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
Adding disk type of Thick Lazy #7916
Conversation
We can probably get it into 0.7.1 :-) |
bbf2215
to
a4452a6
Compare
FYI, test output for the two I touched:
|
7728d41
to
01c5564
Compare
Hi @dkalleg So I think this may be an issue, we are effectvely changing the default from I believe we are going to add this to the state migration Thoughts? Paul |
@stack72 Yeah I realized it was a breaking change. If someone used TF to provision resources (prior to this change) then tried to modify anything (after applying this change) it would be a headache... I'm not sure how Hashicorp treats cases this that. But the name change is not for any technical reason, I only changed it to be inline with the virtual_machine resource. It seemed odd to me that the vm resource uses Anywho, if you prefer to keep the naming schemes, just say the word and I'll change it back to eagerZeroedThick. Also, I'm not sure what you meant by "I believe we are going to add this to the state migration". Is there some TF feature to help migrate attribute refactors like this? Thanks, |
@dkalleg so I think we should keep the Default value as it was - it will certainly prevent less of a headache ;) There are migration files https://github.com/hashicorp/terraform/blob/master/builtin/providers/vsphere/resource_vsphere_virtual_machine_migrate.go This allows us to manipulate the state for addition of new fields etc. This is typically how we would make changes like this If we change it back to what it was, then we can proceed with the rest of the PR for now though :) Paul |
@stack72 Done-zo |
Thanks @dkalleg This LGTM now :) |
Thanks @stack72 ! |
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. |
Tests passing for me. Hoping we can get this on in 0.7.0.