Skip to content

Commit

Permalink
Update flyteplugins/go/tasks/plugins/webapi/agent/plugin.go
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Su <[email protected]>
Signed-off-by: Future-Outlier <[email protected]>
  • Loading branch information
Future-Outlier and pingsutw authored Dec 17, 2023
1 parent b3f7c76 commit de33fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flyteplugins/go/tasks/plugins/webapi/agent/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ func initializeAgentRegistry(cfg *Config, connectionCache map[*Agent]*grpc.Clien
agentRegistry[taskType][false] = cfg.Agents[agentID]
}

if cfg.DefaultAgent.Endpoint != "" {
if len(cfg.DefaultAgent.Endpoint) == 0 {
agentDeployments = append(agentDeployments, &cfg.DefaultAgent)
}
agentDeployments = append(agentDeployments, maps.Values(cfg.Agents)...)
Expand Down

0 comments on commit de33fc3

Please sign in to comment.