From 1cf89562deb9ce0c4c767ff0985aa0bbfeb4aae5 Mon Sep 17 00:00:00 2001 From: Paul BESRET Date: Mon, 2 Oct 2023 15:56:57 +0200 Subject: [PATCH] Updated the CreateContext of resource 'cloudtemple_compute_virtual_machine' to make it use the Background context so it doesn't use a timeout of 20 minutes --- internal/provider/resource_compute_virtual_machine.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/provider/resource_compute_virtual_machine.go b/internal/provider/resource_compute_virtual_machine.go index 2e104bd..dbf93c8 100644 --- a/internal/provider/resource_compute_virtual_machine.go +++ b/internal/provider/resource_compute_virtual_machine.go @@ -25,10 +25,10 @@ Virtual machines can be created using three different methods: - by cloning an existing virtual machine with ` + "`clone_virtual_machine_id`" + ` - by deploying a content library item with ` + "`content_library_id` and `content_library_item_id`", - CreateContext: computeVirtualMachineCreate, - ReadContext: computeVirtualMachineRead, - UpdateContext: computeVirtualMachineUpdate, - DeleteContext: computeVirtualMachineDelete, + CreateWithoutTimeout: computeVirtualMachineCreate, + ReadContext: computeVirtualMachineRead, + UpdateContext: computeVirtualMachineUpdate, + DeleteContext: computeVirtualMachineDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext,