From 1045ef78e5ce1f527a4e4efbc475f9cca5cbd7c2 Mon Sep 17 00:00:00 2001 From: wangmenglan Date: Thu, 14 Dec 2023 15:29:35 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E4=BF=AE=E5=A4=8DHAL=E8=8E=B7?= =?UTF-8?q?=E5=8F=96cpu=E5=8E=82=E5=95=86=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible/roles/tsg-os-HAL/files/script/tsg-os-HAL.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/roles/tsg-os-HAL/files/script/tsg-os-HAL.sh b/ansible/roles/tsg-os-HAL/files/script/tsg-os-HAL.sh index 19342b3c..d92ffa85 100644 --- a/ansible/roles/tsg-os-HAL/files/script/tsg-os-HAL.sh +++ b/ansible/roles/tsg-os-HAL/files/script/tsg-os-HAL.sh @@ -166,11 +166,12 @@ set_cpu_list() { local vendor + vendor=$(lscpu | grep "^Vendor ID" | awk '{print $3}') if [ -n "$NIC_CPU_Affinity_Switch" ] && [ "$NIC_CPU_Affinity_Switch" == "1" ]; then . /opt/tsg/tsg-os-HAL/scripts/cpu_amd.sh elif [ -n "$NIC_CPU_Affinity_Switch" ] && [ "$NIC_CPU_Affinity_Switch" == "0" ]; then . /opt/tsg/tsg-os-HAL/scripts/cpu_default.sh - elif [ $vendor == 'AuthenticAMD' ]; then + elif [ "$vendor" == 'AuthenticAMD' ]; then . /opt/tsg/tsg-os-HAL/scripts/cpu_amd.sh else . /opt/tsg/tsg-os-HAL/scripts/cpu_default.sh