forked from TrueCloudLab/distribution
Drop docker prefix from storage driver API user agent
Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
This commit is contained in:
parent
69fe169013
commit
02a92efba8
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ func NewApp(ctx context.Context, config *configuration.Configuration) *App {
|
||||||
if storageParams == nil {
|
if storageParams == nil {
|
||||||
storageParams = make(configuration.Parameters)
|
storageParams = make(configuration.Parameters)
|
||||||
}
|
}
|
||||||
storageParams["useragent"] = fmt.Sprintf("docker-distribution/%s %s", version.Version, runtime.Version())
|
storageParams["useragent"] = fmt.Sprintf("distribution/%s %s", version.Version, runtime.Version())
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
app.driver, err = factory.Create(config.Storage.Type(), storageParams)
|
app.driver, err = factory.Create(config.Storage.Type(), storageParams)
|
||||||
|
|
Loading…
Reference in a new issue