Merge branch '2.3.0/fix/resource-downscale' into 'dev'
added force parameter to compute resize call See merge request rudecs/terraform-provider-decort!12
This commit is contained in:
@@ -246,6 +246,7 @@ func resourceComputeUpdate(d *schema.ResourceData, m interface{}) error {
|
|||||||
log.Debugf("resourceComputeUpdate: changing CPU %d -> %d and/or RAM %d -> %d",
|
log.Debugf("resourceComputeUpdate: changing CPU %d -> %d and/or RAM %d -> %d",
|
||||||
oldCpu.(int), newCpu.(int),
|
oldCpu.(int), newCpu.(int),
|
||||||
oldRam.(int), newRam.(int))
|
oldRam.(int), newRam.(int))
|
||||||
|
params.Add("force", "true")
|
||||||
_, err := controller.decortAPICall("POST", ComputeResizeAPI, params)
|
_, err := controller.decortAPICall("POST", ComputeResizeAPI, params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user