mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 11:44:26 -06:00
Fix provisioning for a missing plugin (#88354)
This commit is contained in:
parent
39298a656a
commit
0b526acf09
@ -315,8 +315,8 @@ func (s *Service) prepareInstanceSettings(ctx context.Context, pluginContext bac
|
|||||||
// Make sure it is a known plugin type
|
// Make sure it is a known plugin type
|
||||||
p, found := s.pluginStore.Plugin(ctx, settings.Type)
|
p, found := s.pluginStore.Plugin(ctx, settings.Type)
|
||||||
if !found {
|
if !found {
|
||||||
return nil, errutil.BadRequest("datasource.unknownPlugin",
|
// Ignore non-existing plugins for the time being
|
||||||
errutil.WithPublicMessage(fmt.Sprintf("plugin '%s' not found", settings.Type)))
|
return settings, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// When the APIVersion is set, the client must also implement AdmissionHandler
|
// When the APIVersion is set, the client must also implement AdmissionHandler
|
||||||
|
Loading…
Reference in New Issue
Block a user