Browse Source

zfs: make zfsPoolStatesName an array

Code does not modify zfsPoolStatesName slice, so make it an array.

Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
pull/3138/head
Daniel Swarbrick 6 months ago committed by Johannes 'fish' Ziemke
parent
commit
b2dfaeb146
  1. 2
      collector/zfs_linux.go

2
collector/zfs_linux.go

@ -46,7 +46,7 @@ const (
var ( var (
errZFSNotAvailable = errors.New("ZFS / ZFS statistics are not available") errZFSNotAvailable = errors.New("ZFS / ZFS statistics are not available")
zfsPoolStatesName = []string{"online", "degraded", "faulted", "offline", "removed", "unavail", "suspended"} zfsPoolStatesName = [...]string{"online", "degraded", "faulted", "offline", "removed", "unavail", "suspended"}
) )
type zfsCollector struct { type zfsCollector struct {

Loading…
Cancel
Save