Skip to content

Commit

Permalink
Fix update of VM details
Browse files Browse the repository at this point in the history
  • Loading branch information
vishesh92 committed Jan 24, 2025
1 parent a653531 commit aabf454
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cloudstack/resource_cloudstack_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aabf454

Please sign in to comment.