Skip to content

Commit

Permalink
Merge pull request #298 from digitalocean/return-minimum-disk-size-fr…
Browse files Browse the repository at this point in the history
…om-snapshot-response

Return minimum disk size field from snapshot response
  • Loading branch information
Timo Reimann authored Apr 17, 2020
2 parents 690eca5 + 5cec01d commit 6be4784
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## unreleased

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

Expand Down
2 changes: 1 addition & 1 deletion driver/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ func toCSISnapshot(snap *godo.Snapshot) (*csi.Snapshot, error) {
return &csi.Snapshot{
SnapshotId: snap.ID,
SourceVolumeId: snap.ResourceID,
SizeBytes: int64(snap.SizeGigaBytes) * giB,
SizeBytes: int64(snap.MinDiskSize) * giB,
CreationTime: tstamp,
ReadyToUse: true,
}, nil
Expand Down

0 comments on commit 6be4784

Please sign in to comment.