mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-24 19:30:06 +01: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_test.go | ||
auth_config.go | ||
example_config_ent.yml | ||
example_config.yml | ||
main_test.go | ||
main.go | ||
Makefile | ||
README.md | ||
target_url_test.go | ||
target_url.go |
See vmauth docs here.
vmauth docs can be edited at docs/vmauth.md.