From 2b2e46abc2b7aa3dd64e1d1761fe0d44d519a38e Mon Sep 17 00:00:00 2001 From: xue_meng_en <1836611252@qq.com> Date: Mon, 22 May 2023 10:58:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=E5=BC=80=E5=90=AF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E5=8F=82=E6=95=B0uppercase=5Fattribute=5Fnam?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tool/cm_tool/cm_install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/cm_tool/cm_install b/tool/cm_tool/cm_install index 15b045c..4430af5 100755 --- a/tool/cm_tool/cm_install +++ b/tool/cm_tool/cm_install @@ -288,7 +288,7 @@ General options: isLocal = False if host == self.localhostName: isLocal = True - findPrimaryCmd = "source %s; gs_ctl query -D %s | grep 'local_role.*Primary' > /dev/null" % \ + findPrimaryCmd = "source %s; gs_ctl query -D %s | grep -i 'local_role.*Primary' > /dev/null" % \ (self.envFile, self.nodesInfo[host]["dataPath"]) notPrimary, output = executeCmdOnHost(host, findPrimaryCmd, isLocal) if notPrimary == 0: