修复单机下 gs_ssh -c命令执行失败的问题

This commit is contained in:
zhang_xubo
2022-11-18 15:53:51 +08:00
parent b0b9c22c79
commit d92f7b48d1

View File

@ -769,7 +769,8 @@ class SshTool():
resultMap[socket.gethostname()] = DefaultValue.SUCCESS
else:
resultMap[socket.gethostname()] = DefaultValue.FAILURE
if not ssh_hosts:
return
scpCmd += " && %s -r -v -t %s -p %s -H %s -o %s -e %s %s %s" \
" 2>&1 | tee %s" % (pscppre, self.__timeout,
parallel_num,