-Fix problem where makedhcp would fail on SQLite if servicenodetable didn't exist
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1454 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
4f94fb1714
commit
9af42aeca5
@ -2269,12 +2269,11 @@ sub getSNList
|
||||
|
||||
# reads all nodes from the service node table
|
||||
my @servicenodes;
|
||||
my $servicenodetab = xCAT::Table->new('servicenode');
|
||||
my $servicenodetab = xCAT::Table->new('servicenode',-create=>1);
|
||||
unless ($servicenodetab) # no servicenode table
|
||||
{
|
||||
xCAT::MsgUtils->message('I', "Unable to open servicenode table.\n");
|
||||
return 0;
|
||||
|
||||
return ();
|
||||
}
|
||||
my @nodes = $servicenodetab->getAllNodeAttribs([$service]);
|
||||
$servicenodetab->close;
|
||||
|
Loading…
Reference in New Issue
Block a user