Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
Signed-off-by: Future Outlier <[email protected]>
  • Loading branch information
Future Outlier committed Dec 17, 2023
1 parent de33fc3 commit 9e5f835
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 len(cfg.DefaultAgent.Endpoint) == 0 {
if len(cfg.DefaultAgent.Endpoint) != 0 {
agentDeployments = append(agentDeployments, &cfg.DefaultAgent)
}

Check warning on line 341 in flyteplugins/go/tasks/plugins/webapi/agent/plugin.go

View check run for this annotation

Codecov / codecov/patch

flyteplugins/go/tasks/plugins/webapi/agent/plugin.go#L340-L341

Added lines #L340 - L341 were not covered by tests
agentDeployments = append(agentDeployments, maps.Values(cfg.Agents)...)
Expand Down

0 comments on commit 9e5f835

Please sign in to comment.