mirror of
https://github.com/docker/cli.git
synced 2026-09-27 01:40:31 -04:00
Update request.* signature to remove the host
99.9% of use case for request call are using daemonHost. This makes it default and adds a `request.DoOnHost` function to be able to specify the host for specific, more complex use cases. Signed-off-by: Vincent Demeester <vincent@sbr.pm> Upstream-commit: b11ba1231ef0ac99279ed5dcd76d81413d7d63b5 Component: engine
This commit is contained in:
@@ -22,7 +22,6 @@ import (
|
||||
"github.com/docker/docker/api/types"
|
||||
"github.com/docker/docker/integration-cli/checker"
|
||||
"github.com/docker/docker/integration-cli/daemon"
|
||||
"github.com/docker/docker/integration-cli/environment"
|
||||
"github.com/docker/docker/integration-cli/registry"
|
||||
"github.com/docker/docker/integration-cli/request"
|
||||
"github.com/docker/docker/pkg/stringutils"
|
||||
@@ -32,7 +31,7 @@ import (
|
||||
|
||||
// Deprecated
|
||||
func daemonHost() string {
|
||||
return environment.DaemonHost()
|
||||
return request.DaemonHost()
|
||||
}
|
||||
|
||||
// FIXME(vdemeester) move this away are remove ignoreNoSuchContainer bool
|
||||
|
||||
Reference in New Issue
Block a user