From 3cbb295e7b056dd0d5ccb25341250e277719e603 Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Thu, 7 Nov 2024 16:16:48 -0700 Subject: [PATCH] Remove escape character from IPMI attribute list This wasn't in the header, and usually wasn't displaying anything anyway. Signed-off-by: Jonathon Anderson --- internal/pkg/api/node/list.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/pkg/api/node/list.go b/internal/pkg/api/node/list.go index fc543f7f..3f177fa9 100644 --- a/internal/pkg/api/node/list.go +++ b/internal/pkg/api/node/list.go @@ -64,12 +64,12 @@ func NodeList(nodeGet *wwapiv1.GetNodeList) (nodeList wwapiv1.NodeList, err erro fmt.Sprintf("%s:=:%s:=:%s:=:%s:=:%s", "NODE", "IPMI IPADDR", "IPMI PORT", "IPMI USERNAME", "IPMI INTERFACE")) for _, n := range node.FilterNodeListByName(nodes, nodeGet.Nodes) { nodeList.Output = append(nodeList.Output, - fmt.Sprintf("%s:=:%s:=:%s:=:%s:=:%s:=:%s", n.Id(), + fmt.Sprintf("%s:=:%s:=:%s:=:%s:=:%s", + n.Id(), n.Ipmi.Ipaddr.String(), n.Ipmi.Port, n.Ipmi.UserName, - n.Ipmi.Interface, - n.Ipmi.EscapeChar)) + n.Ipmi.Interface)) } } else if nodeGet.Type == wwapiv1.GetNodeList_Long { nodeList.Output = append(nodeList.Output,