Skip to content

Commit

Permalink
Fix a typo in hostConfig.ShmSize validation
Browse files Browse the repository at this point in the history
Other places referring to the same configuration, including docs, have
the correct spelling.

Signed-off-by: Rodolfo Carvalho <[email protected]>
  • Loading branch information
rhcarvalho committed Apr 12, 2016
1 parent a0e7e13 commit fee7e7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion daemon/daemon_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ func verifyPlatformContainerSettings(daemon *Daemon, hostConfig *containertypes.
warnings = append(warnings, w...)

if hostConfig.ShmSize < 0 {
return warnings, fmt.Errorf("SHM size must be greater then 0")
return warnings, fmt.Errorf("SHM size must be greater than 0")
}

if hostConfig.OomScoreAdj < -1000 || hostConfig.OomScoreAdj > 1000 {
Expand Down
2 changes: 1 addition & 1 deletion integration-cli/docker_api_containers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ func (s *DockerSuite) TestPostContainersCreateShmSizeNegative(c *check.C) {
status, body, err := sockRequest("POST", "/containers/create", config)
c.Assert(err, check.IsNil)
c.Assert(status, check.Equals, http.StatusInternalServerError)
c.Assert(string(body), checker.Contains, "SHM size must be greater then 0")
c.Assert(string(body), checker.Contains, "SHM size must be greater than 0")
}

func (s *DockerSuite) TestPostContainersCreateShmSizeHostConfigOmitted(c *check.C) {
Expand Down

0 comments on commit fee7e7c

Please sign in to comment.