added force parameter to compute resize call

This commit is contained in:
kjubybot
2022-05-19 12:33:10 +03:00
parent 2e355d2ede
commit 5e867706c0

View File

@@ -246,6 +246,7 @@ func resourceComputeUpdate(d *schema.ResourceData, m interface{}) error {
log.Debugf("resourceComputeUpdate: changing CPU %d -> %d and/or RAM %d -> %d",
oldCpu.(int), newCpu.(int),
oldRam.(int), newRam.(int))
params.Add("force", "true")
_, err := controller.decortAPICall("POST", ComputeResizeAPI, params)
if err != nil {
return err