Skip to content

Commit aabf454

Browse files
committed
Fix update of VM details
1 parent a653531 commit aabf454

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cloudstack/resource_cloudstack_instance.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,11 @@ func resourceCloudStackInstanceUpdate(d *schema.ResourceData, meta interface{})
735735
}
736736
}
737737
p.SetDetails(vmDetails)
738+
_, err := cs.VirtualMachine.UpdateVirtualMachine(p)
739+
if err != nil {
740+
return fmt.Errorf(
741+
"Error updating the details for instance %s: %s", vmDetails, err)
742+
}
738743
}
739744

740745
return resourceCloudStackInstanceRead(d, meta)

0 commit comments

Comments
 (0)