func (c context) resizeVol() { id := c.instanceID err := instances.ResizeVolume(c.client, id, 4).ExtractErr() c.AssertNoErr(err) c.Logf("Resizing volume of %s. Waiting...", id) c.WaitUntilActive(id) c.Logf("Resized the volume of %s to %d GB", id, 2) }
// ResizeVolume will resize the attached volume for an instance. It supports // only increasing the volume size and does not support decreasing the size. // The volume size is in gigabytes (GB) and must be an integer. func ResizeVolume(client *gophercloud.ServiceClient, id string, size int) os.ActionResult { return os.ResizeVolume(client, id, size) }