fix: ensure that keypairs are generated before pulling models

This commit is contained in:
Adrian Hesketh 2024-09-27 18:04:20 +01:00
parent 10253ce344
commit dfcc0caf8c
No known key found for this signature in database
GPG Key ID: 9E01387222323123

View File

@ -877,6 +877,9 @@ type pullFn func(ctx context.Context, name string, fn api.PullProgressFunc) erro
func getLocalPuller(insecure bool) (p pullFn, err error) {
p = func(ctx context.Context, name string, fn api.PullProgressFunc) error {
if err := initializeKeypair(); err != nil {
return err
}
opts := &server.RegistryOptions{
Insecure: insecure,
}