fixed boot disk resize

gos_tech_4.4.3
kjubybot 3 years ago
parent 165bd89fbf
commit 424cdcd2b3

@ -263,7 +263,7 @@ func resourceComputeUpdate(d *schema.ResourceData, m interface{}) error {
bdsParams.Add("size", fmt.Sprintf("%d", newSize.(int))) bdsParams.Add("size", fmt.Sprintf("%d", newSize.(int)))
log.Debugf("resourceComputeUpdate: compute ID %s, boot disk ID %d resize %d -> %d", log.Debugf("resourceComputeUpdate: compute ID %s, boot disk ID %d resize %d -> %d",
d.Id(), d.Get("boot_disk_id").(int), oldSize.(int), newSize.(int)) d.Id(), d.Get("boot_disk_id").(int), oldSize.(int), newSize.(int))
_, err := controller.decortAPICall("POST", DisksResizeAPI, params) _, err := controller.decortAPICall("POST", DisksResizeAPI, bdsParams)
if err != nil { if err != nil {
return err return err
} }

Loading…
Cancel
Save