From 9773ea7012c8ba93c3d8b1b6c3f1223c3858d7ff Mon Sep 17 00:00:00 2001 From: liuyuhao Date: Thu, 29 Aug 2024 14:13:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dgs=5Fssh=20=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=20bash=20=E5=86=85=E5=BB=BA=E5=91=BD=E4=BB=A4=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/gs_ssh | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/script/gs_ssh b/script/gs_ssh index c55b79b..ee23a60 100644 --- a/script/gs_ssh +++ b/script/gs_ssh @@ -149,25 +149,7 @@ General options: cmdFile = "%s/ClusterCall_%d.sh"\ % (EnvUtil.getTmpDirFromEnv(), os.getpid()) try: - # Queries the existence of objects that - # the command executes in all nodes - command = (self.cmd.strip()).split(" ") - checkCmd = g_file.SHELL_CMD_DICT["getFullPathForShellCmd"] % \ - command[0] - (status, output) = self.sshTool.getSshStatusOutput(checkCmd) - # Resolve all node execution results - for node in status.keys(): - if (status[node] != DefaultValue.SUCCESS): - failedNodes += "%s " % node - else: - succeedNodes += "%s " % node - if (failedNodes != ""): - GaussLog.exitWithError(ErrorCode.GAUSS_524["GAUSS_52403"] - % (command[0], failedNodes)) - failedNodes = "" - succeedNodes = "" executeCmd = self.cmd - ############################################################# FileUtil.createFile(cmdFile, True, DefaultValue.FILE_MODE)