-
Notifications
You must be signed in to change notification settings - Fork 112
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
Fix read of vcd_vapp_vm resource when VM it isn't found. Allows terraform to recreate resource and not fail #783
Conversation
…e resource when it isn't found Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
.changes/v3.6.0/783-bug-fixes.md
Outdated
@@ -0,0 +1 @@ | |||
* Fix Issue #611 when read of `vcd_vapp_vm` resource failed when vm isn't found. Now allows terraform to recreate resource when it isn't found. [GH-783] |
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.
Just a bit of nitpicking 😄
* Fix Issue #611 when read of `vcd_vapp_vm` resource failed when vm isn't found. Now allows terraform to recreate resource when it isn't found. [GH-783] | |
* Fix Issue #611 when read of `vcd_vapp_vm` resource failed when VM isn't found. Now allows Terraform to recreate resource when it isn't found. [GH-783] |
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.
thank you, updated
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
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.
What about adding a test for this use case?
Not sure it's possible to check the result of this failure in the test, will check. |
added |
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
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.
Fantastic :) Tried on both vcd_vapp_vm
and vcd_vm
- works great.
.changes/v3.6.0/783-bug-fixes.md
Outdated
@@ -0,0 +1 @@ | |||
* Fix Issue #611 when read of `vcd_vapp_vm` resource failed when VM isn't found. Now allows Terraform to recreate resource when it isn't found. [GH-783] |
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.
* Fix Issue #611 when read of `vcd_vapp_vm` resource failed when VM isn't found. Now allows Terraform to recreate resource when it isn't found. [GH-783] | |
* Fix Issue #611 when read of `vcd_vapp_vm` and `vcd_vm` resource failed when VM isn't found. Now allows Terraform to recreate resource when it isn't found. [GH-783] |
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.
added
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
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.
Run both vcd_vapp_vm
and vcd_vm
.
When applying it for the second time when previously deleted manually the vm, it recreates it.
Thanks for the effort @vbauzysvmware
Ref: #611