Fix some formatting errors with make fmt
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user