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:
Daniel Swarbrick 2024-05-12 18:27:58 +02:00 committed by Johannes 'fish' Ziemke
parent 8ea822f67a
commit b2dfaeb146
1 changed files with 1 additions and 1 deletions

View File

@ -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 {