mirror of
https://github.com/clearlinux/libnetwork.git
synced 2026-09-05 13:21:30 +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
-3
@@ -33,10 +33,9 @@ create network namespaces and allocate interfaces for containers to use.
|
||||
}
|
||||
|
||||
// A container can join the endpoint by providing the container ID to the join
|
||||
// api which returns the sandbox key which can be used to access the sandbox
|
||||
// created for the container during join.
|
||||
// api.
|
||||
// Join acceps Variadic arguments which will be made use of by libnetwork and Drivers
|
||||
_, err = ep.Join("container1",
|
||||
err = ep.Join("container1",
|
||||
libnetwork.JoinOptionHostname("test"),
|
||||
libnetwork.JoinOptionDomainname("docker.io"))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user