#6644 Only return connector/agent plugins if enabled
Pull request opened by
Sovietaced
## Tracking issue
Closes
#6643
## Why are the changes needed?
The plugin resolution code will return a nil plugin if the task type matches the connector service or agent service but those plugins haven't been enabled and assigned a core plugin.
## What changes were proposed in this pull request?
Add additional nil checks before returning core plugins
## How was this patch tested?
No tests, as there are no tests for the new connector service code.
### Setup process
### Screenshots
## Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
## Related PRs
## Docs link
https://bito.ai#summarystart|
### Summary by Bito
This pull request enhances the plugin resolution logic by adding nil checks before returning core plugins for the connector and agent services. These changes improve robustness by ensuring that a nil plugin is returned if the corresponding services are not enabled, preventing potential errors in plugin resolution.
flyteorg/flyte