修复单机下 gs_ssh -c命令执行失败的问题
This commit is contained in:
@ -769,7 +769,8 @@ class SshTool():
|
|||||||
resultMap[socket.gethostname()] = DefaultValue.SUCCESS
|
resultMap[socket.gethostname()] = DefaultValue.SUCCESS
|
||||||
else:
|
else:
|
||||||
resultMap[socket.gethostname()] = DefaultValue.FAILURE
|
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" \
|
scpCmd += " && %s -r -v -t %s -p %s -H %s -o %s -e %s %s %s" \
|
||||||
" 2>&1 | tee %s" % (pscppre, self.__timeout,
|
" 2>&1 | tee %s" % (pscppre, self.__timeout,
|
||||||
parallel_num,
|
parallel_num,
|
||||||
|
|||||||
Reference in New Issue
Block a user