mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 01:26:38 +00:00
Merge pull request #1144 from hu-weihua/sn1125
Fix bug 1125 Update customize_sleep_for_sn to get correct sn node name
This commit is contained in:
commit
5df15f3921
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user