mirror of
https://github.com/prometheus-community/windows_exporter
synced 2024-12-22 06:29:59 +00:00
service: [0.28.x] fix panic with NewWithConfig code path (#1647)
Co-authored-by: Erik Baranowski <erik.r.baranowski@gmail.com>
This commit is contained in:
parent
9febf1e97c
commit
bf6688c1fb
@ -58,6 +58,7 @@ func New(config *Config) *Collector {
|
||||
c := &Collector{
|
||||
serviceWhereClause: &config.ServiceWhereClause,
|
||||
useAPI: &config.UseAPI,
|
||||
v2: &config.V2,
|
||||
}
|
||||
|
||||
return c
|
||||
|
Loading…
Reference in New Issue
Block a user