Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
fix: YAML decoding (#366)
Browse files Browse the repository at this point in the history
Co-authored-by: Kemal Hadimli <[email protected]>
  • Loading branch information
disq and disq authored Jun 21, 2022
1 parent 964a1bb commit 862590a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func (p *Provider) ConfigureProvider(_ context.Context, request *cqproto.Configu
}, nil
}
case cqproto.ConfigYAML:
if err := yaml.Unmarshal(request.Config, &providerConfig); err != nil {
if err := yaml.Unmarshal(request.Config, providerConfig); err != nil {
p.Logger.Error("Failed to load configuration.", "error", err)
return &cqproto.ConfigureProviderResponse{
Diagnostics: diag.FromError(err, diag.USER),
Expand Down

0 comments on commit 862590a

Please sign in to comment.