-defect 2989257 is fixed;

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5822 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2010-04-20 03:27:13 +00:00
parent 193abe24c1
commit e4659804dd
2 changed files with 4 additions and 3 deletions

View File

@ -148,10 +148,11 @@ sub setdestiny {
my $updateattribs;
if ($target) {
my $archentries = $nodetypetable->getNodesAttribs($req->{node},['supportedarchs']);
if ($target =~ /^([^-]*)-([^-]*)-(.*)/) {
if ($target =~ /^([^-]*)-([^-]*)-([^-]*)-(.*)/) {
$updateattribs->{os}=$1;
$updateattribs->{arch}=$2;
$updateattribs->{profile}=$3;
$updateattribs->{provmethod}=$3;
$updateattribs->{profile}=$4;
my $nodearch=$2;
foreach (@{$req->{node}}) {
if ($archentries->{$_}->[0]->{supportedarchs} and $archentries->{$_}->[0]->{supportedarchs} !~ /(^|,)$nodearch(\z|,)/) {

View File

@ -335,7 +335,7 @@ sub liteMe {
my $d = dirname($f);
# if no such file like $rif, create one
if ( !(-e "$rif") ) {
unless ( -e "$rif" ) {
my $rifstr = $rif;
if($f =~ m{/$}) {
$verbose && $callback->({info=>["mkdir -p $rif"]});