From 50334e6bacd79ec65b1679962277e0ee0c271a69 Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Fri, 15 Jan 2016 13:15:33 -0700 Subject: [PATCH] Only compile the sensors plugin if the 'sensors' tag is set --- plugins/inputs/sensors/sensors.go | 2 +- plugins/inputs/sensors/sensors_nocompile.go | 3 +++ plugins/inputs/sensors/sensors_notlinux.go | 3 --- 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 plugins/inputs/sensors/sensors_nocompile.go delete mode 100644 plugins/inputs/sensors/sensors_notlinux.go diff --git a/plugins/inputs/sensors/sensors.go b/plugins/inputs/sensors/sensors.go index 926003b83..18e26278d 100644 --- a/plugins/inputs/sensors/sensors.go +++ b/plugins/inputs/sensors/sensors.go @@ -1,4 +1,4 @@ -// +build linux +// +build linux,sensors package sensors diff --git a/plugins/inputs/sensors/sensors_nocompile.go b/plugins/inputs/sensors/sensors_nocompile.go new file mode 100644 index 000000000..5c38a437b --- /dev/null +++ b/plugins/inputs/sensors/sensors_nocompile.go @@ -0,0 +1,3 @@ +// +build !linux !sensors + +package sensors diff --git a/plugins/inputs/sensors/sensors_notlinux.go b/plugins/inputs/sensors/sensors_notlinux.go deleted file mode 100644 index 62a621159..000000000 --- a/plugins/inputs/sensors/sensors_notlinux.go +++ /dev/null @@ -1,3 +0,0 @@ -// +build !linux - -package sensors