Skip to content

Commit

Permalink
Merge pull request #62 from RomanBednar/snapshot-pvc-size-mismatch
Browse files Browse the repository at this point in the history
snapshots should report restore size instead of actual size
  • Loading branch information
ambiknai authored Jan 2, 2023
2 parents 7cf2b23 + 74ffb79 commit f038dbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/provider/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ func FromProviderToLibSnapshot(vpcSnapshot *models.Snapshot, logger *zap.Logger)
VolumeID: vpcSnapshot.SourceVolume.ID,
SnapshotID: vpcSnapshot.ID,
SnapshotCreationTime: createdTime,
SnapshotSize: GiBToBytes(vpcSnapshot.Size),
SnapshotSize: GiBToBytes(vpcSnapshot.MinimumCapacity),
VPC: provider.VPC{Href: vpcSnapshot.Href},
}
if vpcSnapshot.LifecycleState == snapshotReadyState {
Expand Down

0 comments on commit f038dbf

Please sign in to comment.