fix for defect 3167038, we lose the noderange table handle ( goes stale) on the service node when using DB2
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8782 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
eadff24f92
commit
5ca2668846
@ -182,6 +182,11 @@ sub expandatom { #TODO: implement table selection as an atom (nodetype.os==rhels
|
||||
# Try to match groups?
|
||||
unless ($grptab) {
|
||||
$grptab = xCAT::Table->new('nodegroup');
|
||||
} else { # if DB2 we need to get a new table handle always
|
||||
my $DBname = xCAT::Utils->get_DBName;
|
||||
if (($DBname =~ /^DB2/) && (xCAT::Utils->isServiceNode())){
|
||||
$grptab = xCAT::Table->new('nodegroup');
|
||||
}
|
||||
}
|
||||
if ($grptab and not $didgrouplist and not scalar @grplist) {
|
||||
$didgrouplist = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user