From 7d07835298c1190fbf484b0c8e46c24e27efc826 Mon Sep 17 00:00:00 2001 From: fumingwei Date: Mon, 5 Jul 2021 15:09:21 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:TSG-6883=E4=BF=AE=E6=94=B9=E5=9B=A0?= =?UTF-8?q?=E8=8E=B7=E5=8F=96sn=E5=A4=B1=E8=B4=A5=E5=AF=BC=E8=87=B4tsg-os-?= =?UTF-8?q?provision=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible/roles/tsg_sn/files/obtain_sn.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/roles/tsg_sn/files/obtain_sn.sh b/ansible/roles/tsg_sn/files/obtain_sn.sh index c29a05ff..fa42139f 100644 --- a/ansible/roles/tsg_sn/files/obtain_sn.sh +++ b/ansible/roles/tsg_sn/files/obtain_sn.sh @@ -23,7 +23,8 @@ CHIDL=`echo $CHID | awk '{print length($0)}'` if [ $CHIDL != 20 ];then echo "CHID length is not 20!" - exit 1 + echo "{\"sn\": \"CBT00000000000000000\"}" > /opt/tsg/etc/tsg_sn.json + exit 0 fi echo "{\"sn\": \"$CHID\"}" > /opt/tsg/etc/tsg_sn.json