Openstack: Fill size attribute for the V3 API volumes

The getVolume method in OpenStack provider is not
filling the Size for the V3 API type volumes. This
breaks the PV resizing of Cinder volumes.
This commit is contained in:
Tomas Smetana 2018-01-23 13:10:17 +01:00
parent 5edcb692df
commit 11081acd86

View File

@ -222,6 +222,7 @@ func (volumes *VolumesV3) getVolume(volumeID string) (Volume, error) {
ID: volumeV3.ID,
Name: volumeV3.Name,
Status: volumeV3.Status,
Size: volumeV3.Size,
}
if len(volumeV3.Attachments) > 0 {