Skip to content

Commit cbf30d0

Browse files
author
Julien Pivotto
committed
Fix panix when using backwards compatible flags
Signed-off-by: Julien Pivotto <[email protected]>
1 parent e57f307 commit cbf30d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/systemd_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func NewSystemdCollector(logger log.Logger) (Collector, error) {
131131
}
132132
}
133133
if *oldUnitInclude != "" {
134-
if *unitInclude == "" {
134+
if *unitInclude == ".+" { // .+ is the default value for collector.systemd.unit-include.
135135
level.Warn(logger).Log("msg", "--collector.systemd.unit-whitelist is DEPRECATED and will be removed in 2.0.0, use --collector.systemd.unit-include")
136136
*unitInclude = *oldUnitInclude
137137
} else {

0 commit comments

Comments
 (0)