Skip to content

Commit 1cb3a42

Browse files
authored
Merge pull request #1448 from presztak/fix_volume_snapshot_protobuf
incusd: Fill ExpiryDate and remove LastUsedDate in volumeSnapshotToProtobuf
2 parents c2f4950 + 6498929 commit 1cb3a42

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/incusd/migrate_storage_volumes.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,6 @@ func volumeSnapshotToProtobuf(vol *api.StorageVolumeSnapshot) *migration.Snapsho
502502
Architecture: proto.Int32(0),
503503
Stateful: proto.Bool(false),
504504
CreationDate: proto.Int64(vol.CreatedAt.UnixNano()),
505-
LastUsedDate: proto.Int64(0),
506-
ExpiryDate: proto.Int64(0),
505+
ExpiryDate: proto.Int64(vol.CreatedAt.UnixNano()),
507506
}
508507
}

0 commit comments

Comments
 (0)