fix: ensure that keypairs are generated before pulling models
This commit is contained in:
parent
10253ce344
commit
dfcc0caf8c
@ -877,6 +877,9 @@ type pullFn func(ctx context.Context, name string, fn api.PullProgressFunc) erro
|
|||||||
|
|
||||||
func getLocalPuller(insecure bool) (p pullFn, err error) {
|
func getLocalPuller(insecure bool) (p pullFn, err error) {
|
||||||
p = func(ctx context.Context, name string, fn api.PullProgressFunc) error {
|
p = func(ctx context.Context, name string, fn api.PullProgressFunc) error {
|
||||||
|
if err := initializeKeypair(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
opts := &server.RegistryOptions{
|
opts := &server.RegistryOptions{
|
||||||
Insecure: insecure,
|
Insecure: insecure,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user