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:
@ -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;
|
||||
|
Reference in New Issue
Block a user