mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-18 23:20:05 +02:00
refactor: introduce Pool interface, move agent_pool to agent module
This commit is contained in:
@@ -83,7 +83,7 @@ func FromDocker(c *container.Summary, dockerHost string) (res *Container) {
|
||||
|
||||
if agent.IsDockerHostAgent(dockerHost) {
|
||||
var ok bool
|
||||
res.Agent, ok = config.GetInstance().GetAgent(dockerHost)
|
||||
res.Agent, ok = agent.Agents.Get(dockerHost)
|
||||
if !ok {
|
||||
logging.Error().Msgf("agent %q not found", dockerHost)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user