diff --git a/pkg/extension/opampextension/opamp_agent.go b/pkg/extension/opampextension/opamp_agent.go index 82548f16cf..3e123d704d 100644 --- a/pkg/extension/opampextension/opamp_agent.go +++ b/pkg/extension/opampextension/opamp_agent.go @@ -486,7 +486,7 @@ func (o *opampAgent) applyRemoteConfig(config *protobufs.AgentRemoteConfig) (con } fb, err := k.Marshal(yaml.Parser()) - + if err != nil { return false, fmt.Errorf("cannot marshal config named %s: %v", n, err) }