Skip to content

Commit

Permalink
configJSON -> configJson (#90)
Browse files Browse the repository at this point in the history
Closes #89
I had this fix stashed when I pushed my branch :facepalm
  • Loading branch information
julienduchesne authored Feb 15, 2024
1 parent c4b592a commit cd8da2c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/grafana/dashboard_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ func (i *dashboardConfigInitializer) Initialize(ctx context.Context, mg resource
if err != nil {
return err
}
v, err := paved.GetString("spec.forProvider.configJSON")
v, err := paved.GetString("spec.forProvider.configJson")
if err != nil {
return fmt.Errorf("could not get configJSON: %w", err)
return fmt.Errorf("could not get configJson: %w", err)
}
if err := paved.SetString("spec.forProvider.configJSON", replaceInterpolation(v)); err != nil {
return fmt.Errorf("could not set configJSON: %w", err)
if err := paved.SetString("spec.forProvider.configJson", replaceInterpolation(v)); err != nil {
return fmt.Errorf("could not set configJson: %w", err)
}
pavedByte, err := paved.MarshalJSON()
if err != nil {
Expand Down

0 comments on commit cd8da2c

Please sign in to comment.