From aabf45483c711c25b638151e49d6e13203c24bc5 Mon Sep 17 00:00:00 2001 From: Vishesh Date: Fri, 24 Jan 2025 15:19:02 +0530 Subject: [PATCH] Fix update of VM details --- cloudstack/resource_cloudstack_instance.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cloudstack/resource_cloudstack_instance.go b/cloudstack/resource_cloudstack_instance.go index fdf77ee9..cd285cff 100644 --- a/cloudstack/resource_cloudstack_instance.go +++ b/cloudstack/resource_cloudstack_instance.go @@ -735,6 +735,11 @@ func resourceCloudStackInstanceUpdate(d *schema.ResourceData, meta interface{}) } } p.SetDetails(vmDetails) + _, err := cs.VirtualMachine.UpdateVirtualMachine(p) + if err != nil { + return fmt.Errorf( + "Error updating the details for instance %s: %s", vmDetails, err) + } } return resourceCloudStackInstanceRead(d, meta)