diff --git a/internal/app/wwctl/node/console/power.go b/internal/app/wwctl/node/console/power.go index 1f984934..c92fea96 100644 --- a/internal/app/wwctl/node/console/power.go +++ b/internal/app/wwctl/node/console/power.go @@ -49,13 +49,13 @@ func CobraRunE(cmd *cobra.Command, args []string) error { } ipmiCmd := power.IPMI{ - NodeName: node.Id.Get(), - HostName: node.Ipmi.Ipaddr.Get(), - Port: node.Ipmi.Port.Get(), - User: node.Ipmi.UserName.Get(), - Password: node.Ipmi.Password.Get(), - AuthType: "MD5", - Interface: node.Ipmi.Interface.Get(), + NodeName: node.Id.Get(), + HostName: node.Ipmi.Ipaddr.Get(), + Port: node.Ipmi.Port.Get(), + User: node.Ipmi.UserName.Get(), + Password: node.Ipmi.Password.Get(), + AuthType: "MD5", + Interface: node.Ipmi.Interface.Get(), EscapeChar: node.Ipmi.EscapeChar.Get(), } diff --git a/internal/pkg/api/node/list.go b/internal/pkg/api/node/list.go index d27eb412..9e863852 100644 --- a/internal/pkg/api/node/list.go +++ b/internal/pkg/api/node/list.go @@ -60,7 +60,7 @@ func NodeList(nodeGet *wwapiv1.GetNodeList) (nodeList wwapiv1.NodeList, err erro fmt.Sprintf("%s:=:%s:=:%s:=:%s:=:%s", "NODE NAME", "IPMI IPADDR", "IPMI PORT", "IPMI USERNAME", "IPMI INTERFACE")) for _, n := range node.FilterByName(nodes, nodeGet.Nodes) { nodeList.Output = append(nodeList.Output, - fmt.Sprintf("%s:=:%s:=:%s:=:%s:=:%s:=:%s", n.Id.Print(), + fmt.Sprintf("%s:=:%s:=:%s:=:%s:=:%s:=:%s", n.Id.Print(), n.Ipmi.Ipaddr.Print(), n.Ipmi.Port.Print(), n.Ipmi.UserName.Print(), diff --git a/internal/pkg/node/datastructure.go b/internal/pkg/node/datastructure.go index 183e77a1..989c007a 100644 --- a/internal/pkg/node/datastructure.go +++ b/internal/pkg/node/datastructure.go @@ -62,7 +62,7 @@ type IpmiConf struct { Port string `yaml:"port,omitempty" lopt:"ipmiport" comment:"Set the IPMI port"` Gateway string `yaml:"gateway,omitempty" lopt:"ipmigateway" comment:"Set the IPMI gateway" type:"IP"` Interface string `yaml:"interface,omitempty" lopt:"ipmiinterface" comment:"Set the node's IPMI interface (defaults: 'lan')"` - EscapeChar string `yaml:"escapechar,omitempty" lopt:"ipmiescapechar" comment:"Set the IPMI escape character (defaults: '~')"` + EscapeChar string `yaml:"escapechar,omitempty" lopt:"ipmiescapechar" comment:"Set the IPMI escape character (defaults: '~')"` Write string `yaml:"write,omitempty" lopt:"ipmiwrite" comment:"Enable the write of impi configuration (true/false)" type:"bool"` Tags map[string]string `yaml:"tags,omitempty" lopt:"ipmitagadd" comment:"add ipmitags"` TagsDel []string `yaml:"tagsdel,omitempty" lopt:"ipmitagdel" comment:"remove ipmitags"` // should not go to disk only to wire