Browse code

Fix a typo in hostConfig.ShmSize validation

Other places referring to the same configuration, including docs, have
the correct spelling.

Signed-off-by: Rodolfo Carvalho <rhcarvalho@gmail.com>

Rodolfo Carvalho authored on 2016/04/12 23:45:05
Showing 2 changed files
... ...
@@ -525,7 +525,7 @@ func verifyPlatformContainerSettings(daemon *Daemon, hostConfig *containertypes.
525 525
 	warnings = append(warnings, w...)
526 526
 
527 527
 	if hostConfig.ShmSize < 0 {
528
-		return warnings, fmt.Errorf("SHM size must be greater then 0")
528
+		return warnings, fmt.Errorf("SHM size must be greater than 0")
529 529
 	}
530 530
 
531 531
 	if hostConfig.OomScoreAdj < -1000 || hostConfig.OomScoreAdj > 1000 {
... ...
@@ -1462,7 +1462,7 @@ func (s *DockerSuite) TestPostContainersCreateShmSizeNegative(c *check.C) {
1462 1462
 	status, body, err := sockRequest("POST", "/containers/create", config)
1463 1463
 	c.Assert(err, check.IsNil)
1464 1464
 	c.Assert(status, check.Equals, http.StatusInternalServerError)
1465
-	c.Assert(string(body), checker.Contains, "SHM size must be greater then 0")
1465
+	c.Assert(string(body), checker.Contains, "SHM size must be greater than 0")
1466 1466
 }
1467 1467
 
1468 1468
 func (s *DockerSuite) TestPostContainersCreateShmSizeHostConfigOmitted(c *check.C) {