Quick bug fix

This commit is contained in:
Александр Лазаренко 2025-05-10 01:31:33 +03:00
parent f7c1e461e6
commit 3efa753394
Signed by: Kerblif
GPG Key ID: 5AFAD6640F4670C3

2
api.go
View File

@ -117,7 +117,7 @@ func (a *Agate) SaveSnapshot(ctx context.Context, name string, parentID string)
// Call OpenFunc if provided
if a.options.OpenFunc != nil {
if err := a.options.OpenFunc(a.options.WorkDir); err != nil {
if err := a.options.OpenFunc(a.options.BlobStore.GetActiveDir()); err != nil {
return "", fmt.Errorf("failed to open resources after snapshot: %w", err)
}
}