need a passthrough bootstrap on TufMetaStore

Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
This commit is contained in:
David Lawrence
2016-04-05 17:44:19 -07:00
committed by Riyaz Faizullabhoy
parent 227092b942
commit 33f5255c8d
4 changed files with 15 additions and 2 deletions

View File

@@ -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.")

View File

@@ -64,7 +64,9 @@ func main() {
err = server.Run(ctx, serverConfig)
}
logrus.Error(err.Error())
if err != nil {
logrus.Fatal(err.Error())
}
return
}