mirror of
https://github.com/docker/docs.git
synced 2026-04-12 06:19:22 +07:00
need a passthrough bootstrap on TufMetaStore
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
This commit is contained in:
committed by
Riyaz Faizullabhoy
parent
227092b942
commit
33f5255c8d
@@ -9,6 +9,9 @@ import (
|
||||
|
||||
func bootstrap(ctx context.Context) error {
|
||||
s := ctx.Value("metaStore")
|
||||
if s == nil {
|
||||
return fmt.Errorf("no store set during bootstrapping")
|
||||
}
|
||||
store, ok := s.(storage.Bootstrapper)
|
||||
if !ok {
|
||||
return fmt.Errorf("Store does not support bootstrapping.")
|
||||
|
||||
@@ -64,7 +64,9 @@ func main() {
|
||||
err = server.Run(ctx, serverConfig)
|
||||
}
|
||||
|
||||
logrus.Error(err.Error())
|
||||
if err != nil {
|
||||
logrus.Fatal(err.Error())
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user