-Fix oversight in unit allowance in previous checkin
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7500 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
5f705fd242
commit
9e458341d7
@ -2155,12 +2155,12 @@ sub build_cfgspec {
|
||||
my $ncpus;
|
||||
my $updatehash;
|
||||
if ($otherargs->{memory}) {
|
||||
$memory=$otherargs->{memory};
|
||||
$memory=getUnits($otherargs->{memory},"M",1048576);
|
||||
if ($tablecfg{vm}->{$node}->[0]->{memory}) {
|
||||
$updatehash->{memory}=$memory;
|
||||
}
|
||||
} elsif ($tablecfg{vm}->{$node}->[0]->{memory}) {
|
||||
$memory = getUnits($tablecfg{vm}->{$node}->[0]->{memory},"M",1048576)
|
||||
$memory = getUnits($tablecfg{vm}->{$node}->[0]->{memory},"M",1048576);
|
||||
} else {
|
||||
$memory = 512;
|
||||
}
|
||||
@ -3061,7 +3061,7 @@ sub build_more_info{
|
||||
if (defined($ent->{mpa})) { push @{$mpa_hash{$ent->{mpa}}{nodes}}, $node;}
|
||||
else {
|
||||
$callback->({data=>["no mpa defined for node $node"]});
|
||||
return @moreinfo;;
|
||||
return @moreinfo;
|
||||
}
|
||||
if (defined($ent->{id})) { push @{$mpa_hash{$ent->{mpa}}{ids}}, $ent->{id};}
|
||||
else { push @{$mpa_hash{$ent->{mpa}}{ids}}, "";}
|
||||
|
Loading…
Reference in New Issue
Block a user