Typo fixed and simple code.
Signed-off-by: Ri Xu <xuri@360.net> Upstream-commit: 87e8a936e82ecfbef59b829d8bbfca3fb4aa3163 Component: engine
This commit is contained in:
@@ -333,7 +333,7 @@ func (s *DockerSwarmSuite) AddDaemon(c *check.C, joinSwarm, manager bool) *daemo
|
||||
args := []string{"--iptables=false", "--swarm-default-advertise-addr=lo"} // avoid networking conflicts
|
||||
d.StartWithBusybox(c, args...)
|
||||
|
||||
if joinSwarm == true {
|
||||
if joinSwarm {
|
||||
if len(s.daemons) > 0 {
|
||||
tokens := s.daemons[0].JoinTokens(c)
|
||||
token := tokens.Worker
|
||||
|
||||
@@ -44,11 +44,7 @@ func testIpcCheckDevExists(mm string) (bool, error) {
|
||||
}
|
||||
}
|
||||
|
||||
if err := s.Err(); err != nil {
|
||||
return false, err
|
||||
}
|
||||
|
||||
return false, nil
|
||||
return false, s.Err()
|
||||
}
|
||||
|
||||
// testIpcNonePrivateShareable is a helper function to test "none",
|
||||
|
||||
Reference in New Issue
Block a user