From 6498929c4c0fdde27684c3f499d828bdfdd59787 Mon Sep 17 00:00:00 2001 From: Piotr Resztak Date: Mon, 2 Dec 2024 09:14:56 +0100 Subject: [PATCH] incusd: Fill ExpiryDate and remove LastUsedDate in volumeSnapshotToProtobuf Signed-off-by: Piotr Resztak --- cmd/incusd/migrate_storage_volumes.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/incusd/migrate_storage_volumes.go b/cmd/incusd/migrate_storage_volumes.go index 413e559177..208d09c39c 100644 --- a/cmd/incusd/migrate_storage_volumes.go +++ b/cmd/incusd/migrate_storage_volumes.go @@ -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()), } }