gs_ssh单节点执行报错问题修复
This commit is contained in:
@ -736,7 +736,8 @@ class SshTool():
|
|||||||
targetDir, self.__resultFile)
|
targetDir, self.__resultFile)
|
||||||
hostList = self.hostNames
|
hostList = self.hostNames
|
||||||
if len(hostList) == 1 and hostList[0] == socket.gethostname() and \
|
if len(hostList) == 1 and hostList[0] == socket.gethostname() and \
|
||||||
srcFile != targetDir:
|
srcFile != targetDir and \
|
||||||
|
srcFile != os.path.join(targetDir, os.path.split(srcFile)[1]):
|
||||||
localMode = True
|
localMode = True
|
||||||
scpCmd = "cp -r %s %s" % (srcFile, targetDir)
|
scpCmd = "cp -r %s %s" % (srcFile, targetDir)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user