mirror of
https://github.com/grafana/grafana.git
synced 2025-01-28 17:24:59 -06:00
Plugins: Update missed ConversionHandler checks (#92011)
This commit is contained in:
parent
ca56f16615
commit
a12b372556
@ -145,7 +145,7 @@ func (cp *corePlugin) ValidateAdmission(ctx context.Context, req *backend.Admiss
|
||||
}
|
||||
|
||||
func (cp *corePlugin) ConvertObjects(ctx context.Context, req *backend.ConversionRequest) (*backend.ConversionResponse, error) {
|
||||
if cp.AdmissionHandler != nil {
|
||||
if cp.ConversionHandler != nil {
|
||||
ctx = backend.WithGrafanaConfig(ctx, req.PluginContext.GrafanaConfig)
|
||||
return cp.ConversionHandler.ConvertObjects(ctx, req)
|
||||
}
|
||||
|
@ -955,7 +955,7 @@ func (tp *testPlugin) MutateAdmission(ctx context.Context, req *backend.Admissio
|
||||
|
||||
// ConvertObject implements backend.AdmissionHandler.
|
||||
func (tp *testPlugin) ConvertObjects(ctx context.Context, req *backend.ConversionRequest) (*backend.ConversionResponse, error) {
|
||||
if tp.AdmissionHandler != nil {
|
||||
if tp.ConversionHandler != nil {
|
||||
return tp.ConversionHandler.ConvertObjects(ctx, req)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user