Skip to content

Commit

Permalink
Merge pull request #1448 from presztak/fix_volume_snapshot_protobuf
Browse files Browse the repository at this point in the history
incusd: Fill ExpiryDate and remove LastUsedDate in volumeSnapshotToProtobuf
  • Loading branch information
stgraber authored Dec 2, 2024
2 parents c2f4950 + 6498929 commit 1cb3a42
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 1cb3a42

Please sign in to comment.