mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-01 14:47:38 +00:00
67efc174a8
It is assumed that URLPrefix.busOriginal will be initialized
durin Unmarshal of the config. But in tests we set fields manually,
so this field never get initialized properly.
Fixes the error `panic: runtime error: integer divide by zero`
at `vmauth.getLeastLoadedBackendURL`.
Signed-off-by: hagen1778 <roman@victoriametrics.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
deployment | ||
multiarch | ||
auth_config.go | ||
auth_config_test.go | ||
example_config.yml | ||
example_config_ent.yml | ||
main.go | ||
main_test.go | ||
Makefile | ||
README.md | ||
target_url.go | ||
target_url_test.go |
See vmauth docs here.
vmauth docs can be edited at docs/vmauth.md.