Skip to content

Commit

Permalink
incusd: Fill ExpiryDate and remove LastUsedDate in volumeSnapshotToPr…
Browse files Browse the repository at this point in the history
…otobuf

Signed-off-by: Piotr Resztak <[email protected]>
  • Loading branch information
presztak committed Dec 2, 2024
1 parent db1a995 commit 6498929
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/incusd/migrate_storage_volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,6 @@ func volumeSnapshotToProtobuf(vol *api.StorageVolumeSnapshot) *migration.Snapsho
Architecture: proto.Int32(0),
Stateful: proto.Bool(false),
CreationDate: proto.Int64(vol.CreatedAt.UnixNano()),
LastUsedDate: proto.Int64(0),
ExpiryDate: proto.Int64(0),
ExpiryDate: proto.Int64(vol.CreatedAt.UnixNano()),
}
}

0 comments on commit 6498929

Please sign in to comment.