Use ProfileConf rather than NodeConf for profile commands

This removes node-only attributes, like a profile list, from profile commands.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2024-10-17 15:25:41 -04:00
parent 6460ca827a
commit d91d273ac7
6 changed files with 38 additions and 18 deletions

View File

@@ -92,6 +92,12 @@ func NewNode(id string) (nodeconf NodeConf) {
return nodeconf
}
func NewProfile(id string) (profileconf ProfileConf) {
profileconf = EmptyProfile()
profileconf.id = id
return profileconf
}
func EmptyNode() (nodeconf NodeConf) {
nodeconf.Ipmi = new(IpmiConf)
nodeconf.Ipmi.Tags = map[string]string{}