mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 15:29:24 +01:00
sd/nomad: panic in nomad watcher because of nil map (#3784)
properly initialize url.Values
This commit is contained in:
parent
f5595233c2
commit
004a24c950
@ -45,7 +45,7 @@ type serviceWatcher struct {
|
||||
|
||||
// newNomadWatcher creates new watcher and starts background service discovery for Nomad.
|
||||
func newNomadWatcher(client *discoveryutils.Client, sdc *SDConfig, namespace, region string) *nomadWatcher {
|
||||
var qa url.Values
|
||||
qa := url.Values{}
|
||||
if sdc.AllowStale == nil || *sdc.AllowStale {
|
||||
qa.Set("stale", "")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user