Commit 11081acd authored by Tomas Smetana's avatar Tomas Smetana

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.
parent 5edcb692
...@@ -222,6 +222,7 @@ func (volumes *VolumesV3) getVolume(volumeID string) (Volume, error) { ...@@ -222,6 +222,7 @@ func (volumes *VolumesV3) getVolume(volumeID string) (Volume, error) {
ID: volumeV3.ID, ID: volumeV3.ID,
Name: volumeV3.Name, Name: volumeV3.Name,
Status: volumeV3.Status, Status: volumeV3.Status,
Size: volumeV3.Size,
} }
if len(volumeV3.Attachments) > 0 { if len(volumeV3.Attachments) > 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment