From 9e5f835cb4cc098593edede83a0b52eeaaabf607 Mon Sep 17 00:00:00 2001 From: Future Outlier Date: Sun, 17 Dec 2023 18:47:47 +0800 Subject: [PATCH] fix bug Signed-off-by: Future Outlier --- flyteplugins/go/tasks/plugins/webapi/agent/plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go index d233ca3f5d..34a950ce39 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go @@ -336,7 +336,7 @@ func initializeAgentRegistry(cfg *Config, connectionCache map[*Agent]*grpc.Clien agentRegistry[taskType][false] = cfg.Agents[agentID] } - if len(cfg.DefaultAgent.Endpoint) == 0 { + if len(cfg.DefaultAgent.Endpoint) != 0 { agentDeployments = append(agentDeployments, &cfg.DefaultAgent) } agentDeployments = append(agentDeployments, maps.Values(cfg.Agents)...)