-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add attribute to create parent directories when creating a virtual disk #512
Add attribute to create parent directories when creating a virtual disk #512
Conversation
Sharing the test results:
|
@vancluever I see you have several PRs open and probably know the answer to my question. |
@luis-silva thanks for your contribution! Everything looks good and I will be merging it momentarily. For future reference, no, you don't need to tag or mention anyone for a PR to be reviewed - there's no prioritization system for this kind of thing. Sometimes PRs can take us a few days to get to though, depending on complexity and the current workload of maintainers. Thanks again! |
@vancluever Thank you for that, I wasn't expecting it to be merged that fast ! |
This PR introduces the attribute to create the parent directories in the datastore when creating a
resource_vsphere_virtualdisk
. It uses the same logic seen inresource_vsphere_file.go
with an extra check to ensure the directory is already created before creating the disk since the 'MakeDirectory' call does not return a task we can wait on.