2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 20:30:56 +00:00

fix bug 1125 Update customize_sleep_for_sn to get correct sn node name

This commit is contained in:
hu-weihua
2016-05-18 06:12:52 -04:00
parent b12eda029a
commit a3c7b67dd6

View File

@ -5,7 +5,7 @@ my $arch=$ARGV[1];
my $log="/tmp/pre_deploy_sn.log";
my $orgclusterconffile="/opt/xcat/share/xcat/tools/autotest/default.conf";
my $snnodename = `cat $orgclusterconffile |grep SN|grep =|awk -F'=' '{print \$2}'`;
my $snnodename = `cat $orgclusterconffile |grep -E '^SN\s*='|awk -F'=' '{print \$2}'`;
chomp($snnodename);
`echo "SN=$snnodename" >> $log`;
sleep 300;