mirror of
https://github.com/clearlinux/libnetwork.git
synced 2026-09-06 22:01:55 +00:00
Remove container data return value from Join
Now that Endpoint interface has the Info method there is no need to return container data as a return value in the Join method. Removed the return value and fixed all the callers. Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
This commit is contained in:
+2
-2
@@ -407,11 +407,11 @@ func procJoinEndpoint(c libnetwork.NetworkController, vars map[string]string, bo
|
||||
return nil, errRsp
|
||||
}
|
||||
|
||||
cd, err := ep.Join(ej.ContainerID, ej.parseOptions()...)
|
||||
err = ep.Join(ej.ContainerID, ej.parseOptions()...)
|
||||
if err != nil {
|
||||
return nil, convertNetworkError(err)
|
||||
}
|
||||
return cd, &successResponse
|
||||
return ep.Info().SandboxKey(), &successResponse
|
||||
}
|
||||
|
||||
func procLeaveEndpoint(c libnetwork.NetworkController, vars map[string]string, body []byte) (interface{}, *responseStatus) {
|
||||
|
||||
Reference in New Issue
Block a user