Skip to content

Commit 6be4784

Browse files
author
Timo Reimann
authored
Merge pull request #298 from digitalocean/return-minimum-disk-size-from-snapshot-response
Return minimum disk size field from snapshot response
2 parents 690eca5 + 5cec01d commit 6be4784

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## unreleased
22

3+
* Return minimum disk size field from snapshot response
4+
[[GH-298]](https://github.com/digitalocean/csi-digitalocean/pull/298)
35
* Improve debug HTTP server usage
46
[[GH-281]](https://github.com/digitalocean/csi-digitalocean/pull/281)
57

driver/controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ func toCSISnapshot(snap *godo.Snapshot) (*csi.Snapshot, error) {
11081108
return &csi.Snapshot{
11091109
SnapshotId: snap.ID,
11101110
SourceVolumeId: snap.ResourceID,
1111-
SizeBytes: int64(snap.SizeGigaBytes) * giB,
1111+
SizeBytes: int64(snap.MinDiskSize) * giB,
11121112
CreationTime: tstamp,
11131113
ReadyToUse: true,
11141114
}, nil

0 commit comments

Comments
 (0)