ExtSvcAuth: Refactor external service registry to use ExternalServiceRegistry variables (#78056)
ExtSvcAuth: Refactor external service registry to use ExternalServiceRegistry
This commit is contained in:
@@ -31,10 +31,10 @@ func ProvideService(cfg *config.Cfg, reg extsvcauth.ExternalServiceRegistry, set
|
||||
return s
|
||||
}
|
||||
|
||||
func (s *Service) HasExternalService(ctx context.Context, pluginID string) bool {
|
||||
func (s *Service) HasExternalService(ctx context.Context, pluginID string) (bool, error) {
|
||||
if !s.featureEnabled {
|
||||
s.log.Debug("Skipping HasExternalService call. The feature is behind a feature toggle and needs to be enabled.")
|
||||
return false
|
||||
return false, nil
|
||||
}
|
||||
|
||||
return s.reg.HasExternalService(ctx, pluginID)
|
||||
|
||||
Reference in New Issue
Block a user