Adding quotes around escapechar in ipmitool.tmpl

- Fixes: #1802

Signed-off-by: Shane Nehring <snehring@iastate.edu>
This commit is contained in:
Shane Nehring
2025-03-21 12:31:11 -05:00
committed by Jonathon Anderson
parent a0b741b066
commit e152db228c
3 changed files with 3 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ func Test_Ipmitool(t *testing.T) {
Password: "calvin",
},
},
cmdStr: `ipmitool -I lanplus -e ~ -p 687 -H 192.168.1.100 -U "root" -P "calvin" chassis power status`,
cmdStr: `ipmitool -I lanplus -e "~" -p 687 -H 192.168.1.100 -U "root" -P "calvin" chassis power status`,
},
"nobmc PowerStatus full": {
bmc: TemplateStruct{