From f45780f0b079c6207d901dc032097dc6cf92544c Mon Sep 17 00:00:00 2001 From: liuheng Date: Wed, 18 Sep 2024 14:47:59 +0800 Subject: [PATCH] =?UTF-8?q?fix=20pssh=E6=B7=BB=E5=8A=A0=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/local/PreInstallUtility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/local/PreInstallUtility.py b/script/local/PreInstallUtility.py index 5d1f7e1..ce25d8c 100644 --- a/script/local/PreInstallUtility.py +++ b/script/local/PreInstallUtility.py @@ -668,7 +668,7 @@ Common options: retry += 1 time.sleep(1) - hostname_cmd = "pssh -s -H %s 'cat /etc/hostname'" % (node_name) + hostname_cmd = "source %s;pssh -s -H %s 'cat /etc/hostname'" % (self.mpprcFile, node_name) (status, output) = subprocess.getstatusoutput(hostname_cmd) if status == 0 and output.strip() == node_name: pass