Fix 'not a directory' error when restoring bootstrap.json

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko
2023-10-14 09:37:19 -07:00
parent cf75cfa32c
commit f76eaf5a6b
2 changed files with 9 additions and 9 deletions

View File

@@ -96,7 +96,7 @@ func loadShim(ctx context.Context, bundle *Bundle, onClose func()) (_ ShimInstan
f.Close()
}
params, err := restoreBootstrapParams(filepath.Join(bundle.Path, "bootstrap.json"))
params, err := restoreBootstrapParams(bundle.Path)
if err != nil {
return nil, fmt.Errorf("failed to read boostrap.json when restoring bundle %q: %w", bundle.ID, err)
}