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>
This commit is contained in:
parent
8ea822f67a
commit
b2dfaeb146
|
@ -46,7 +46,7 @@ const (
|
|||
var (
|
||||
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 {
|
||||
|
|
Loading…
Reference in New Issue