Skip to content

Commit 6fbf6ff

Browse files
authored
Merge pull request #158 from shapeblue/fixup-vm-details-update
Fix update of VM details
2 parents b4b9f6d + aabf454 commit 6fbf6ff

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
@@ -768,6 +768,11 @@ func resourceCloudStackInstanceUpdate(d *schema.ResourceData, meta interface{})
768768
}
769769
}
770770
p.SetDetails(vmDetails)
771+
_, err := cs.VirtualMachine.UpdateVirtualMachine(p)
772+
if err != nil {
773+
return fmt.Errorf(
774+
"Error updating the details for instance %s: %s", vmDetails, err)
775+
}
771776
}
772777

773778
return resourceCloudStackInstanceRead(d, meta)

0 commit comments

Comments
 (0)