myxcatpost_{NODE} is just a list of scripts. It doesn't provide the return code. The error check should be done in each script.
But currently xcat check the return of myxcatpost_{NODE} which will fail. Remove the check code. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3034 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
db325e5fd1
commit
ef1ede014d
@ -149,11 +149,7 @@ if (-f $scriptname)
|
||||
$nodesetstat=`grep "NODESETSTATE=" $scriptname|awk -F \= '{print \$2}'`;
|
||||
chomp($nodesetstat);
|
||||
|
||||
if (&runcmd("cd /xcatpost;$scriptname") != 0)
|
||||
{
|
||||
print "$::sdate xcataixpost: Could not run $scriptname.\n";
|
||||
print $::LOG_FILE "$::sdate xcataixpost: Could not run $scriptname.\n";
|
||||
}
|
||||
&runcmd("cd /xcatpost;$scriptname");
|
||||
} else {
|
||||
print "$::sdate xcataixpost: Could not find post script for $::shorthost.\n";
|
||||
print $::LOG_FILE "$::sdate xcataixpost: Could not find post script for $::shorthost.\n";
|
||||
|
Loading…
Reference in New Issue
Block a user