when we download during bootstrapClient we should save the root to cache

Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
This commit is contained in:
David Lawrence 2016-01-05 16:44:27 -08:00
parent 762c997104
commit d11f11748c
1 changed files with 6 additions and 0 deletions

View File

@ -774,6 +774,12 @@ func (r *NotaryRepository) bootstrapClient(checkInitialized bool) (*tufclient.Cl
if err != nil { if err != nil {
return nil, err return nil, err
} }
err = r.fileStore.SetMeta("root", tmpJSON)
if err != nil {
// if we can't write cache we should still continue, just log error
logrus.Errorf("could not save root to cache: %s", err.Error())
}
} }
} }