Cast const to string

This commit is contained in:
Thomas Roehl 2022-03-04 14:20:54 +01:00
parent bdb16090d7
commit 77f8b275ed

View File

@ -17,7 +17,7 @@ import (
lp "github.com/ClusterCockpit/cc-metric-collector/internal/ccMetric" lp "github.com/ClusterCockpit/cc-metric-collector/internal/ccMetric"
) )
const DEFAULT_GPFS_CMD = "mmpmon" const DEFAULT_GPFS_CMD = `mmpmon`
type GpfsCollector struct { type GpfsCollector struct {
metricCollector metricCollector
@ -40,7 +40,7 @@ func (m *GpfsCollector) Init(config json.RawMessage) error {
m.setup() m.setup()
// Set default mmpmon binary // Set default mmpmon binary
m.config.Mmpmon = DEFAULT_GPFS_CMD m.config.Mmpmon = string(DEFAULT_GPFS_CMD)
// Read JSON configuration // Read JSON configuration
if len(config) > 0 { if len(config) > 0 {