Skip to content

Commit

Permalink
fetching thruk details should not break a backend
Browse files Browse the repository at this point in the history
this is an optional step
  • Loading branch information
sni committed Dec 11, 2023
1 parent aa805e4 commit 9873c76
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lmd/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,9 @@ func (p *Peer) periodicTimeperiodsUpdate(data *DataStoreSet) (err error) {
}
// this also sets the thruk version and checks the clock, so it should be called first
if _, _, err = p.fetchThrukExtras(); err != nil {
// log error, but this should not prevent accessing the backend
log.Debugf("fetchThrukExtras: %s ", err.Error())

return
}
return
Expand Down Expand Up @@ -899,8 +902,8 @@ func (p *Peer) updateInitialStatus(store *DataStore) (err error) {
// if its http and a status request, try a processinfo query to fetch all backends
configtool, thrukextras, cerr := p.fetchThrukExtras() // this also sets the thruk version and checks the clock, so it should be called first
if cerr != nil {
err = cerr
return
// log error, but this should not prevent accessing the backend
log.Debugf("fetchThrukExtras: %s ", cerr.Error())
}
if p.Config.NoConfigTool >= 1 {
configtool = map[string]interface{}{
Expand Down

0 comments on commit 9873c76

Please sign in to comment.