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:
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user