mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-09 23:24:09 -08:00
Fix panix when using backwards compatible flags
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
parent
e57f30736c
commit
cbf30d0744
|
@ -131,7 +131,7 @@ func NewSystemdCollector(logger log.Logger) (Collector, error) {
|
|||
}
|
||||
}
|
||||
if *oldUnitInclude != "" {
|
||||
if *unitInclude == "" {
|
||||
if *unitInclude == ".+" { // .+ is the default value for collector.systemd.unit-include.
|
||||
level.Warn(logger).Log("msg", "--collector.systemd.unit-whitelist is DEPRECATED and will be removed in 2.0.0, use --collector.systemd.unit-include")
|
||||
*unitInclude = *oldUnitInclude
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue