Convert disk booleans from wwbool to *bool

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-09-02 19:43:02 -06:00
committed by Christian Goll
parent cc946e0b99
commit 59f187bf5e
23 changed files with 216 additions and 101 deletions

View File

@@ -4,6 +4,7 @@ import (
"net"
"github.com/creasty/defaults"
"github.com/warewulf/warewulf/internal/pkg/util"
)
type IPNet net.IPNet
@@ -46,5 +47,5 @@ func (conf *APIConf) Unmarshal(unmarshal func(interface{}) error) error {
}
func (conf APIConf) Enabled() bool {
return BoolP(conf.EnabledP)
return util.BoolP(conf.EnabledP)
}