mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue