[Cmii][ImageSync] -Image Function accomplish -1

This commit is contained in:
zeaslity
2024-03-26 17:17:46 +08:00
committed by zeaslity
parent d800d5dfb8
commit 2b53db2141
14 changed files with 245 additions and 52 deletions

View File

@@ -232,7 +232,7 @@ func collectOutput(r io.Reader, resultSlice []string) []string {
}
// HardCodeCommandExecutor 执行硬编码的shell命令如 echo sda > sdasd ; rpcinfo -p localhost 等
func HardCodeCommandExecutor(hardCodeCommand string) (bool, []string) {
func HardCodeCommandExecutor(hardCodeCommand string) (ok bool, resultLog []string) {
// result
var resultSlice []string
@@ -264,7 +264,7 @@ func HardCodeCommandExecutor(hardCodeCommand string) (bool, []string) {
resultOk = false
}
log.DebugF("hard code command of [ %s ] result are => %v", hardCodeCommand, resultSlice)
//log.DebugF("hard code command of [ %s ] result are => %v", hardCodeCommand, resultSlice)
return resultOk, resultSlice
}