Skip to content

Commit

Permalink
[BCF-2788] Correctly unmarshal the plugin config (#11283)
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-cordenier authored Nov 15, 2023
1 parent 50fbfd2 commit 5fd94b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/services/ocr2/delegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ func (d *Delegate) newServicesGenericPlugin(
Command: command,
ProviderType: cconf.ProviderType,
TelemetryType: cconf.TelemetryType,
PluginConfig: string(p.PluginConfig),
PluginConfig: p.PluginConfig,
}

pr := generic.NewPipelineRunnerAdapter(pluginLggr, jb, d.pipelineRunner)
Expand Down
2 changes: 1 addition & 1 deletion core/services/ocr2/validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ type coreConfig struct {

type OCR2GenericPluginConfig struct {
CoreConfig coreConfig `json:"coreConfig"`
PluginConfig json.RawMessage
PluginConfig string
}

func validateOCR2GenericPluginSpec(jsonConfig job.JSONConfig) error {
Expand Down

0 comments on commit 5fd94b0

Please sign in to comment.