-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:
parent
33183256ed
commit
f97cc4c345
@ -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 {
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user