Skip to content

Commit

Permalink
avoid nil pointer access when reporting remote config status
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Bacher <[email protected]>
  • Loading branch information
bacherfl committed Dec 16, 2024
1 parent f72ef07 commit 1b56b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/opampsupervisor/supervisor/supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ func (s *Supervisor) saveLastReceivedOwnTelemetrySettings(set *protobufs.Telemet

func (s *Supervisor) reportConfigStatus(status protobufs.RemoteConfigStatuses, errorMessage string) {
err := s.opampClient.SetRemoteConfigStatus(&protobufs.RemoteConfigStatus{
LastRemoteConfigHash: s.remoteConfig.ConfigHash,
LastRemoteConfigHash: s.remoteConfig.GetConfigHash(),
Status: status,
ErrorMessage: errorMessage,
})
Expand Down

0 comments on commit 1b56b1c

Please sign in to comment.