Skip to content

Commit

Permalink
Disable RAS input plugin on specific Linux architectures: mips64, mip…
Browse files Browse the repository at this point in the history
…s64le, ppc64le, riscv64 (#8317)

(cherry picked from commit 14e81f4)
  • Loading branch information
zak-pawel authored and ssoroka committed Oct 28, 2020
1 parent 7b6404d commit 90e5497
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/inputs/ras/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# RAS Daemon Input Plugin

This plugin is only available on Linux.
This plugin is only available on Linux (only for `386`, `amd64`, `arm` and `arm64` architectures).

The `RAS` plugin gathers and counts errors provided by [RASDaemon](https://github.com/mchehab/rasdaemon).

Expand Down
3 changes: 2 additions & 1 deletion plugins/inputs/ras/ras.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build linux,!mips,!mipsle,!s390x
// +build linux
// +build 386 amd64 arm arm64

package ras

Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/ras/ras_notlinux.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// +build !linux mips mipsle s390x
// +build !linux linux,!386,!amd64,!arm,!arm64

package ras
3 changes: 2 additions & 1 deletion plugins/inputs/ras/ras_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build linux,!mips,!mipsle,!s390x
// +build linux
// +build 386 amd64 arm arm64

package ras

Expand Down

0 comments on commit 90e5497

Please sign in to comment.