mirror of
https://github.com/moby/moby.git
synced 2025-12-06 07:41:18 +03:00
pkg/sysinfo.New(), daemon.RawSysInfo(): remove "quiet" argument
The "quiet" argument was only used in a single place (at daemon startup), and every other use had to pass "false" to prevent this function from logging warnings. Now that SysInfo contains the warnings that occurred when collecting the system information, we can make leave it up to the caller to use those warnings (and log them if wanted). Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -699,7 +699,7 @@ func (s *DockerSuite) TestRunSwapLessThanMemoryLimit(c *testing.T) {
|
||||
func (s *DockerSuite) TestRunInvalidCpusetCpusFlagValue(c *testing.T) {
|
||||
testRequires(c, cgroupCpuset, testEnv.IsLocalDaemon)
|
||||
|
||||
sysInfo := sysinfo.New(true)
|
||||
sysInfo := sysinfo.New()
|
||||
cpus, err := parsers.ParseUintList(sysInfo.Cpus)
|
||||
assert.NilError(c, err)
|
||||
var invalid int
|
||||
@@ -718,7 +718,7 @@ func (s *DockerSuite) TestRunInvalidCpusetCpusFlagValue(c *testing.T) {
|
||||
func (s *DockerSuite) TestRunInvalidCpusetMemsFlagValue(c *testing.T) {
|
||||
testRequires(c, cgroupCpuset)
|
||||
|
||||
sysInfo := sysinfo.New(true)
|
||||
sysInfo := sysinfo.New()
|
||||
mems, err := parsers.ParseUintList(sysInfo.Mems)
|
||||
assert.NilError(c, err)
|
||||
var invalid int
|
||||
|
||||
Reference in New Issue
Block a user