Merge pull request #7286 from erikh/parsers
Move parsing functions to parsers/ and the specific kernel handling...
This commit is contained in:
commit
1c43e06601
@ -25,6 +25,7 @@ import (
|
|||||||
|
|
||||||
"github.com/docker/docker/dockerversion"
|
"github.com/docker/docker/dockerversion"
|
||||||
"github.com/docker/docker/pkg/httputils"
|
"github.com/docker/docker/pkg/httputils"
|
||||||
|
"github.com/docker/docker/pkg/parsers/kernel"
|
||||||
"github.com/docker/docker/utils"
|
"github.com/docker/docker/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -956,7 +957,7 @@ func HTTPRequestFactory(metaHeaders map[string][]string) *utils.HTTPRequestFacto
|
|||||||
httpVersion = append(httpVersion, &simpleVersionInfo{"docker", dockerversion.VERSION})
|
httpVersion = append(httpVersion, &simpleVersionInfo{"docker", dockerversion.VERSION})
|
||||||
httpVersion = append(httpVersion, &simpleVersionInfo{"go", runtime.Version()})
|
httpVersion = append(httpVersion, &simpleVersionInfo{"go", runtime.Version()})
|
||||||
httpVersion = append(httpVersion, &simpleVersionInfo{"git-commit", dockerversion.GITCOMMIT})
|
httpVersion = append(httpVersion, &simpleVersionInfo{"git-commit", dockerversion.GITCOMMIT})
|
||||||
if kernelVersion, err := utils.GetKernelVersion(); err == nil {
|
if kernelVersion, err := kernel.GetKernelVersion(); err == nil {
|
||||||
httpVersion = append(httpVersion, &simpleVersionInfo{"kernel", kernelVersion.String()})
|
httpVersion = append(httpVersion, &simpleVersionInfo{"kernel", kernelVersion.String()})
|
||||||
}
|
}
|
||||||
httpVersion = append(httpVersion, &simpleVersionInfo{"os", runtime.GOOS})
|
httpVersion = append(httpVersion, &simpleVersionInfo{"os", runtime.GOOS})
|
||||||
|
Loading…
Reference in New Issue
Block a user