-Fix nodeadd bug with no nodegroup table

-Fix makehosts command


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3609 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-06-19 17:49:51 +00:00
parent 33183256ed
commit f97cc4c345
2 changed files with 4 additions and 2 deletions

View File

@ -32,7 +32,7 @@ sub addnode {
my $foundone=0;
while ($idx <= $#hosts) {
if ($hosts[$idx] =~ /^${ip}\s/ or $hosts[$idx] =~ /^\d+\.\d+\.\d+\.\d+\s+${node}[\s\.r/) {
if ($hosts[$idx] =~ /^${ip}\s/ or $hosts[$idx] =~ /^\d+\.\d+\.\d+\.\d+\s+${node}[\s\.]/) {
if ($foundone) {
$hosts[$idx]="";
} else {

View File

@ -760,7 +760,9 @@ sub nodech
if (($key eq 'groups') && ($op eq '=')) {
if (scalar(@grplist) == 0) { # Do not call $grptab->getAllEntries for each node, performance issue.
$grptab = xCAT::Table->new('nodegroup');
@grplist = @{$grptab->getAllEntries()};
if ($grptab) {
@grplist = @{$grptab->getAllEntries()};
}
}
my @grps = split(/,/, $val);
foreach my $grp (@grps) {